[Pkg-exppsy-pynifti] [Nipy-devel] Image, design, usecases
Matthew Brett
matthew.brett at gmail.com
Wed May 13 16:33:19 UTC 2009
Hi,
Hmm - now - I worry we are starting to confuse interfaces and implementation.
Michael, I think you are saying that you want to be able to do this:
data, meta = load(filename)
assert isinstance(data, np.ndarray)
assert isinstance(meta, dict)
That's really easy with the current brifti code. For example, I
believe the following will work:
def apparently_basic(filename):
img = nifti.load(filename)
meta = {}
meta.update(img.get_header())
meta['affine'] = img.get_affine()
return img.get_data(), meta
That's what Thorsten was proposing, but I think that is not what you mean?
I do think we have to get the interfaces right, but I worry that we
might be discussing how to get there rather than where we want to go.
See you,
Matthew
More information about the Pkg-exppsy-pynifti
mailing list