[ismrmrd] 171/177: Python opens dataset at creation
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:02:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag v1.1.0.beta.1
in repository ismrmrd.
commit 2168e6fd463cbd10e71c0201d25945e93fd6216d
Author: Souheil Inati <souheil.inati at nih.gov>
Date: Tue Nov 4 15:10:38 2014 -0500
Python opens dataset at creation
---
bindings/python/ismrmrd.pyx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bindings/python/ismrmrd.pyx b/bindings/python/ismrmrd.pyx
index f5f2cb3..02e93c4 100644
--- a/bindings/python/ismrmrd.pyx
+++ b/bindings/python/ismrmrd.pyx
@@ -677,12 +677,12 @@ cdef class Dataset:
cdef cismrmrd.ISMRMRD_Dataset *thisptr
cdef bint is_open
- def __cinit__(self, const char *filename, const char *groupname):
+ def __cinit__(self, const char *filename, const char *groupname, create_if_needed=True):
self.thisptr = <cismrmrd.ISMRMRD_Dataset*>calloc(1, sizeof(cismrmrd.ISMRMRD_Dataset))
errno = cismrmrd.ismrmrd_init_dataset(self.thisptr, filename, groupname)
if errno != cismrmrd.ISMRMRD_NOERROR:
raise RuntimeError(build_exception_string())
- self.is_open = False
+ self.open(create_if_needed)
def __dealloc__(self):
self.close()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git
More information about the debian-science-commits
mailing list