Skip to content

'Nifti1Header' object has no attribute '_structarr' upon copy #144

@yarikoptic

Description

@yarikoptic

As reported originally on nipy-user
https://groups.google.com/forum/?fromgroups=#!topic/nipy-user/tDl4w2oN75U

    header_ = evds.a.imghdr.copy()
  File "/usr/lib/pymodules/python2.6/nibabel/nifti1.py", line 561, in copy
    self.binaryblock,
  File "/usr/lib/pymodules/python2.6/nibabel/wrapstruct.py", line 210, in binaryblock
    return self._structarr.tostring()
AttributeError: 'Nifti1Header' object has no attribute '_structarr'

and it is probably related to the trigger -- storing of this header into hdf5 using our PyMVPA hdf5 backend under nibabel 1.2.0 and then reloading it with nibabel 1.4.0, so per se it might not even be nibabel's issue... but that yet to be proven ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions