Re: [Numpy-discussion] proposal: min, max of complex should give warning (Ralf Gommers)

2013-12-31 Thread David Goldsmith
> > As for your proposal, it would be good to know if adding a warning would > actually catch any bugs. For the truncation warning it caught several in > scipy and other libs IIRC. > > Ralf > In light of this, perhaps the pertinent unit tests should be modified (even if the warning suggestion isn'

Re: [Numpy-discussion] ANN: NumPy 1.7.2 release

2013-12-31 Thread Charles R Harris
On Tue, Dec 31, 2013 at 9:57 AM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > Hello, > > I'm happy to announce the of Numpy 1.7.2. > This is a bugfix only release supporting Python 2.4 - 2.7 and 3.1 - 3.3. > > More than 42 issues were fixed, the most important issues are listed in > the

[Numpy-discussion] ANN: NumPy 1.7.2 release

2013-12-31 Thread Julian Taylor
Hello, I'm happy to announce the of Numpy 1.7.2. This is a bugfix only release supporting Python 2.4 - 2.7 and 3.1 - 3.3. More than 42 issues were fixed, the most important issues are listed in the release notes: https://github.com/numpy/numpy/blob/v1.7.2/doc/release/1.7.2-notes.rst Compared to

Re: [Numpy-discussion] proposal: min, max of complex should give warning

2013-12-31 Thread Neal Becker
Ralf Gommers wrote: > On Tue, Dec 31, 2013 at 4:52 PM, Neal Becker wrote: > >> Cera, Tim wrote: >> >> > I don't work with complex numbers, but just sampling what others do: >> > >> > >> > Python: no ordering, results in TypeError >> > >> > Matlab: sorts by magnitude >> > http://www.mathworks.com

Re: [Numpy-discussion] proposal: min, max of complex should give warning

2013-12-31 Thread Ralf Gommers
On Tue, Dec 31, 2013 at 4:52 PM, Neal Becker wrote: > Cera, Tim wrote: > > > I don't work with complex numbers, but just sampling what others do: > > > > > > Python: no ordering, results in TypeError > > > > Matlab: sorts by magnitude > > http://www.mathworks.com/help/matlab/ref/sort.html > > > >

Re: [Numpy-discussion] proposal: min, max of complex should give warning

2013-12-31 Thread Neal Becker
Cera, Tim wrote: > I don't work with complex numbers, but just sampling what others do: > > > Python: no ordering, results in TypeError > > Matlab: sorts by magnitude > http://www.mathworks.com/help/matlab/ref/sort.html > > R: sorts first by real, then by imaginary > http://stat.ethz.ch/R-manu

Re: [Numpy-discussion] proposal: min, max of complex should give warning

2013-12-31 Thread Cera, Tim
I don't work with complex numbers, but just sampling what others do: Python: no ordering, results in TypeError Matlab: sorts by magnitude http://www.mathworks.com/help/matlab/ref/sort.html R: sorts first by real, then by imaginary http://stat.ethz.ch/R-manual/R-patched/library/base/html/sort.ht

Re: [Numpy-discussion] Loading large NIfTI file -> MemoryError

2013-12-31 Thread Julian Taylor
On 31.12.2013 14:13, Amira Chekir wrote: > Hello together, > > I try to load a (large) NIfTI file (DMRI from Human Connectome Project, > about 1 GB) with NiBabel. > > import nibabel as nib > img = nib.load("dmri.nii.gz") > data = img.get_data() > > The program crashes during "img.get_data()" wi

[Numpy-discussion] Loading large NIfTI file -> MemoryError

2013-12-31 Thread Amira Chekir
Hello together, I try to load a (large) NIfTI file (DMRI from Human Connectome Project, about 1 GB) with NiBabel. import nibabel as nib img = nib.load("dmri.nii.gz") data = img.get_data() The program crashes during "img.get_data()" with an "MemoryError" (having 4 GB of RAM in my machine). Any