[Numpy-discussion] ZeroRank memmap behavior?

2012-09-21 Thread Wim Bakker
I'm deeply puzzled by the recently changed behavior of zero-rank memmaps. I think this change happened from version 1.6.0 to 1.6.1, which I'm currently using. import numpy as np Create a zero-rank memmap. x = np.memmap(filename='/tmp/m', dtype=float, mode='w+', shape=()) Give it a value:

Re: [Numpy-discussion] ZeroRank memmap behavior?

2012-09-21 Thread Sebastian Berg
Hey, this is indirectly related (I think it might fix many of these memmap oddities though?)... Why does the memmap object not implement: def __array_wrap__(self, obj): if self is obj: return obj return np.array(obj, copy=False, subok=False) By doing so if we

Re: [Numpy-discussion] Regression: in-place operations (possibly intentional)

2012-09-21 Thread Chris Barker
On Thu, Sep 20, 2012 at 2:48 PM, Nathaniel Smith n...@pobox.com wrote: because a += b really should be the same as a = a + b. I don't think that's the case - the inplace operator should be (and are) more than syntactic sugar -- they have a different meaning and use (in fact, I think they

Re: [Numpy-discussion] Regression: in-place operations (possibly intentional)

2012-09-21 Thread Nathaniel Smith
On 21 Sep 2012 17:31, Chris Barker chris.bar...@noaa.gov wrote: On Thu, Sep 20, 2012 at 2:48 PM, Nathaniel Smith n...@pobox.com wrote: because a += b really should be the same as a = a + b. I don't think that's the case - the inplace operator should be (and are) more than syntactic sugar

Re: [Numpy-discussion] Fwd: Package: scipy-0.11.0-0.1.rc2.fc18 Tag: f18-updates-candidate Status: failed Built by: orion

2012-09-21 Thread Ondřej Čertík
Hi Orion, On Thu, Sep 20, 2012 at 2:56 PM, Orion Poplawski or...@cora.nwra.com wrote: This is a plea for some help. We've been having trouble getting scipy to pass all of the tests in the Fedora 18 build with python 3.3 (although it seems to build okay in Fedora 19). Below are the logs of

[Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-09-21 Thread Ralf Gommers
Hi, An issue I keep running into is that packages use: install_requires = [numpy] or install_requires = ['numpy = 1.6'] in their setup.py. This simply doesn't work a lot of the time. I actually filed a bug against patsy for that (https://github.com/pydata/patsy/issues/5), but Nathaniel

Re: [Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-09-21 Thread Travis Oliphant
On Sep 21, 2012, at 3:13 PM, Ralf Gommers wrote: Hi, An issue I keep running into is that packages use: install_requires = [numpy] or install_requires = ['numpy = 1.6'] in their setup.py. This simply doesn't work a lot of the time. I actually filed a bug against patsy for

Re: [Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-09-21 Thread Benjamin Root
On Fri, Sep 21, 2012 at 4:19 PM, Travis Oliphant tra...@continuum.iowrote: On Sep 21, 2012, at 3:13 PM, Ralf Gommers wrote: Hi, An issue I keep running into is that packages use: install_requires = [numpy] or install_requires = ['numpy = 1.6'] in their setup.py. This simply

Re: [Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-09-21 Thread Andreas Hilboll
Am Fr 21 Sep 2012 22:37:13 CEST schrieb Benjamin Root: On Fri, Sep 21, 2012 at 4:19 PM, Travis Oliphant tra...@continuum.io mailto:tra...@continuum.io wrote: On Sep 21, 2012, at 3:13 PM, Ralf Gommers wrote: Hi, An issue I keep running into is that packages use:

Re: [Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-09-21 Thread Ralf Gommers
On Fri, Sep 21, 2012 at 10:37 PM, Benjamin Root ben.r...@ou.edu wrote: On Fri, Sep 21, 2012 at 4:19 PM, Travis Oliphant tra...@continuum.iowrote: On Sep 21, 2012, at 3:13 PM, Ralf Gommers wrote: Hi, An issue I keep running into is that packages use: install_requires = [numpy] or

Re: [Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-09-21 Thread Frédéric Bastien
On Fri, Sep 21, 2012 at 4:37 PM, Benjamin Root ben.r...@ou.edu wrote: On Fri, Sep 21, 2012 at 4:19 PM, Travis Oliphant tra...@continuum.io wrote: On Sep 21, 2012, at 3:13 PM, Ralf Gommers wrote: Hi, An issue I keep running into is that packages use: install_requires = [numpy] or

Re: [Numpy-discussion] Regression: in-place operations (possibly intentional)

2012-09-21 Thread Chris Barker
On Fri, Sep 21, 2012 at 10:03 AM, Nathaniel Smith n...@pobox.com wrote: You're right of course. What I meant is that a += b should produce the same result as a[...] = a + b If we change the casting rule for the first one but not the second, though, then these will produce different

Re: [Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-09-21 Thread Nathaniel Smith
On Fri, Sep 21, 2012 at 9:42 PM, Ralf Gommers ralf.gomm...@gmail.com wrote: Eh, just installing numpy with python setup.py install uses plain distutils, not setuptools. So there indeed isn't an entry in easy-install.pth. Which some consider a feature:) I don't think this is correct. To be

Re: [Numpy-discussion] Regression: in-place operations (possibly intentional)

2012-09-21 Thread Nathaniel Smith
On Fri, Sep 21, 2012 at 10:04 PM, Chris Barker chris.bar...@noaa.gov wrote: On Fri, Sep 21, 2012 at 10:03 AM, Nathaniel Smith n...@pobox.com wrote: You're right of course. What I meant is that a += b should produce the same result as a[...] = a + b If we change the casting rule for the

Re: [Numpy-discussion] Regression: in-place operations (possibly intentional)

2012-09-21 Thread Eric Firing
On 2012/09/21 12:20 PM, Nathaniel Smith wrote: On Fri, Sep 21, 2012 at 10:04 PM, Chris Barker chris.bar...@noaa.gov wrote: On Fri, Sep 21, 2012 at 10:03 AM, Nathaniel Smith n...@pobox.com wrote: You're right of course. What I meant is that a += b should produce the same result as

Re: [Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-09-21 Thread josef . pktd
On Fri, Sep 21, 2012 at 5:39 PM, Nathaniel Smith n...@pobox.com wrote: On Fri, Sep 21, 2012 at 9:42 PM, Ralf Gommers ralf.gomm...@gmail.com wrote: Eh, just installing numpy with python setup.py install uses plain distutils, not setuptools. So there indeed isn't an entry in easy-install.pth.

Re: [Numpy-discussion] Regression: in-place operations (possibly intentional)

2012-09-21 Thread Charles R Harris
On Fri, Sep 21, 2012 at 5:51 PM, Eric Firing efir...@hawaii.edu wrote: On 2012/09/21 12:20 PM, Nathaniel Smith wrote: On Fri, Sep 21, 2012 at 10:04 PM, Chris Barker chris.bar...@noaa.gov wrote: On Fri, Sep 21, 2012 at 10:03 AM, Nathaniel Smith n...@pobox.com wrote: You're right of