Inheritance diagram for nipy.modalities.fmri.fmristat.npzimage:
A simple way of storing nipy.core.image.image.Image‘s in .npz files.
Also includes NPZBuffer that keeps data in an ndarray instance until flushed to an .npz file.
At the time, NifTi file writing is broken – that’s why NifTi files are not written.
A temporary image that is saved to an npz Image when its flush method is called.
The attribute ‘extra’ should be a dictionary of arrays that will be included in the resuting .npz file when flush is called. This is a simple way to add extra information to Image files.
Create an .npz Image, which consists of at least three arrays:
Load an .npz Image, this .npz file must have at least two arrays
The remaining arrays of .npz file are stored as the ‘extra’ attribute of the Image.
Save an .npz Image, which consists of at least three arrays:
Image must have an affine transformation, which is the only part of the mapping that is saved.