[pymvpa] NiftiImage from stream or string object
James Kyle
jameskyle at ucla.edu
Fri Mar 20 20:32:30 UTC 2009
Greetings,
I'm writing an application that'll receive a nifti image over a socket
connection. Once received, it's going to pass it off to analysis
framework.
I'm using twisted for the networking, which receives data as a Python
string object.
As I understand the API, NiftiImage accepts either an actual file or a
numpy array + header dict as valid arguments. I wish to avoid
unnecessary disk I/O, so I'm going to subclass NiftiImage to accept
raw data as an argument in the form of a string or a stream.
Before I set out to do so, I wanted to make sure I haven't missed a
means of doing this already present in the library.
Cheers,
James Kyle
More information about the Pkg-ExpPsy-PyMVPA
mailing list