[ismrmrd] 172/177: tweaked python examples to have files opened by default.
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 cd3a7382a7054dccce13ab8f1ded89fb5f9315c8
Author: Souheil Inati <souheil.inati at nih.gov>
Date: Tue Nov 4 15:26:52 2014 -0500
tweaked python examples to have files opened by default.
---
examples/python/ismrmrd_create_dataset.py | 3 +--
examples/python/ismrmrd_recon_dataset.py | 2 +-
todo.txt | 11 -----------
3 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/examples/python/ismrmrd_create_dataset.py b/examples/python/ismrmrd_create_dataset.py
index f1d112b..0ac2939 100644
--- a/examples/python/ismrmrd_create_dataset.py
+++ b/examples/python/ismrmrd_create_dataset.py
@@ -10,7 +10,6 @@ if os.path.isfile(filename):
os.remove(filename)
# Create an empty ISMRMRD dataset
dset = ismrmrd.Dataset(filename, "dataset")
-dset.open(create_if_needed=True)
# Synthesize the object
nX, nY = 256, 256
@@ -172,4 +171,4 @@ if HAS_XSD:
dset.write_header(header.toxml('utf-8'))
-dset.close()
\ No newline at end of file
+dset.close()
diff --git a/examples/python/ismrmrd_recon_dataset.py b/examples/python/ismrmrd_recon_dataset.py
index a7f6803..124ecfa 100644
--- a/examples/python/ismrmrd_recon_dataset.py
+++ b/examples/python/ismrmrd_recon_dataset.py
@@ -12,7 +12,7 @@ filename = 'testdata.h5'
if not os.path.isfile(filename):
print("%s is not a valid file" % filename)
raise SystemExit
-dset = ismrmrd.IsmrmrdDataset(filename, 'dataset')
+dset = ismrmrd.IsmrmrdDataset(filename, 'dataset', create_if_needed=False)
header = ismrmrd_xsd.CreateFromDocument(dset.readHeader())
enc = header.encoding[0]
diff --git a/todo.txt b/todo.txt
deleted file mode 100644
index 93f3051..0000000
--- a/todo.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-ISMRMRD ToDo List
-
-* Versioning
-* Fix bug in fixed memory layout header that has been around for a while.
-* Make accessor class for XML Header (eliminate XSD)
-* Use C version of HDF5 (remove mutex)
-* Make library "header only"
-* Add proper support for meta attributes
-* Pure Matlab API
-* Pure Python API
-* Remove Java API
--
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