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

Nicholas Dowson nick314 at hotmail.com
Tue Aug 18 01:34:34 UTC 2009


apt-cache policy python-nifti output:

python-nifti:
  Installed: 0.20080630.1-1
  Candidate: 0.20080630.1-1
  Version table:
 *** 0.20080630.1-1 0
        500 http://au.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status


My python-nifti package does actually seem to be part of the standard universe repositories. Here a cut and paste from synaptic
Maintainer: Ubuntu MOTU Developers <ubuntu-motu at lists.ubuntu.com>
Priority: Optional
Section: Science (universe)

I also checked my repositories. These are all standard except for this one: http://download.opensuse.org/repositories/home:/tonddast:/itk/xUbuntu_8.10

The (possibly relevant) following packages are installed:
python-2.5, python2.5-dev, libitk, python-itk, and python-numpy

I am tempted to remove all the packages, and reinstall them all again from scratch. Any suggestions before I do this?

Thanks again,
Nick


> Date: Mon, 17 Aug 2009 08:10:43 -0400
> From: michael.hanke at gmail.com
> To: nick314 at hotmail.com
> CC: pkg-exppsy-pynifti at lists.alioth.debian.org
> Subject: Re: [Pkg-exppsy-pynifti] Converting NiftiImage to ndarray gives "ValueError: dimensions too large"
> 
> Hi,
> 
> 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?
> 
> 
> Michael
> 
> 
> -- 
> GPG key:  1024D/3144BE0F Michael Hanke
> http://apsy.gse.uni-magdeburg.de/hanke
> ICQ: 48230050

_________________________________________________________________
Windows Live Messenger: Celebrate 10 amazing years with free winks and emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pynifti/attachments/20090818/6ed8f3b3/attachment.htm>


More information about the Pkg-exppsy-pynifti mailing list