[Pkg-exppsy-pynifti] Converting NiftiImage to ndarray gives "ValueError: dimensions too large"

Michael Hanke michael.hanke at gmail.com
Mon Aug 17 12:10:43 UTC 2009


On Sun, Aug 16, 2009 at 11:14:54PM +0000, Nicholas Dowson wrote:
> Michael: Thank you for your speed of response and apologies for taking so long to reply.
> Here is another (small) file of a 4x4x4 cube.  The same code causes a segmentation fault (repeated for ease of copy-paste)
> from nifti import *
> from numpy import *
> mynifti = NiftiImage('test4x4x4.nii')
> myarray = mynifti.getDataArray()
> myarray

This works perfectly for me (on Debian squeeze). I guess it must be the
specific version(s) you have on your system. Could you run

  apt-cache policy python-nifti

and send the output please.

Since pynifti is not part of Intrepid I guess you are using the
repository at apsy.gse.uni-magdeburg.de, correct?


GPG key:  1024D/3144BE0F Michael Hanke
ICQ: 48230050

More information about the Pkg-exppsy-pynifti mailing list