[Pkg-exppsy-pynifti] [pymvpa] [pynifti] Extended Header information in Nifti

Yaroslav Halchenko debian at onerussian.com
Fri Jan 9 15:51:51 UTC 2009


please pardon my ignorance - but does

> I have now implemented basic support for extensions. It should work with
> any text-based extension (which seems to be the majority). Please have a

state that I should be able to serialize as string (pickle.dumps()) any object as string
and store it within extension?

So I should be able to store a whole NiftiDataset (in pymvpa)
within a nifti image? ;-)

On Fri, 09 Jan 2009, Michael Hanke wrote:

> Hi,

> [ for some reasons the mailing lists seem to be dead -- sending this one
>   again -- hope it makes it to you ]

> On Fri, Jan 09, 2009 at 06:49:24AM +0100, Michael Hanke wrote:
> > Hi,

> > On Thu, Jan 08, 2009 at 04:47:02PM -0500, Luke Bloy wrote:
> > > Hi all,

> > > I was wondering if pynifti supported the nifti extended header as 
> > > described Here? <http://nifti.nimh.nih.gov/nifti-1/documentation/faq#Q21>
> > No, the current release does not -- it will pretty much ignore extensions.
> I have now implemented basic support for extensions. It should work with
> any text-based extension (which seems to be the majority). Please have a
> look at the Git repository for the patch:

>   http://git.debian.org/?p=pkg-exppsy/pynifti.git;a=commitdiff;h=3db15a222217ec0f3b3b591b80313a8e1cbcd941

> And especially the docstring for the NiftiExtension class for a couple
> of example use-cases:

>   http://git.debian.org/?p=pkg-exppsy/pynifti.git;a=blob;f=nifti/extensions.py;h=db259145973f4bad20a3d6374af9ecec8b48b47d;hb=3db15a222217ec0f3b3b591b80313a8e1cbcd941


> Is that what you are looking for?


> Looking forward to your feedback,

> Michael
-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-1412 | FWD: 82823 | Fax: (973) 353-1171
        101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW:     http://www.linkedin.com/in/yarik        



More information about the Pkg-exppsy-pynifti mailing list