Re: [Numpy-discussion] numpy.filled, again

2013-06-28 Thread josef . pktd
On Wed, Jun 12, 2013 at 8:10 AM, Nathaniel Smith wrote: > Hi all, > > It looks like we've gotten a bit confused and need to untangle > something. There's a PR to add new functions 'np.filled' and > 'np.filled_like': > https://github.com/numpy/numpy/pull/2875 > And there was a discussion about th

Re: [Numpy-discussion] Automatic custom dtype

2013-06-28 Thread Richard Hattersley
On 28 June 2013 17:33, Charles R Harris wrote: > On Fri, Jun 28, 2013 at 5:27 AM, Richard Hattersley > wrote: >> So: >> np.array([scalar]) => np.array([scalar], dtype=my_dtype) >> But: >> np.array(scalar) => np.array(scalar, dtype=object) > > So the scalar case (0 dimensional array) doesn

Re: [Numpy-discussion] Automatic custom dtype

2013-06-28 Thread Charles R Harris
On Fri, Jun 28, 2013 at 5:27 AM, Richard Hattersley wrote: > On 21 June 2013 19:57, Charles R Harris wrote: > > You could check the numpy/core/src/umath/test_rational.c.src code to see > if > > you are missing something. > > In v1.7+ the difference in behaviour between my code and the rational >

Re: [Numpy-discussion] Automatic custom dtype

2013-06-28 Thread Charles R Harris
On Fri, Jun 28, 2013 at 5:27 AM, Richard Hattersley wrote: > On 21 June 2013 19:57, Charles R Harris wrote: > > You could check the numpy/core/src/umath/test_rational.c.src code to see > if > > you are missing something. > > In v1.7+ the difference in behaviour between my code and the rational >

Re: [Numpy-discussion] NumPy sprints @ scipy 2013

2013-06-28 Thread Sebastian Berg
On Fri, 2013-06-28 at 07:44 -0500, David Cournapeau wrote: > Hi there, > > > It is very last minute, but I have set up a page to coordinate a bit > scipy 2013's numpy sprints (Friday 28 and Saturday 29th, although I > may not be there the second day). > > > Depending on the audience, I will als

Re: [Numpy-discussion] NumPy sprints @ scipy 2013

2013-06-28 Thread David Cournapeau
It is better with a link, sorry about that: https://github.com/numpy/numpy/wiki/Scipy-2013 On Fri, Jun 28, 2013 at 7:44 AM, David Cournapeau wrote: > Hi there, > > It is very last minute, but I have set up a page to coordinate a bit scipy > 2013's numpy sprints (Friday 28 and Saturday 29th, altho

[Numpy-discussion] NumPy sprints @ scipy 2013

2013-06-28 Thread David Cournapeau
Hi there, It is very last minute, but I have set up a page to coordinate a bit scipy 2013's numpy sprints (Friday 28 and Saturday 29th, although I may not be there the second day). Depending on the audience, I will also look for low hanging fruits. Feel free to edit the wiki at will cheers, Davi

Re: [Numpy-discussion] Automatic custom dtype

2013-06-28 Thread Richard Hattersley
On 21 June 2013 19:57, Charles R Harris wrote: > You could check the numpy/core/src/umath/test_rational.c.src code to see if > you are missing something. In v1.7+ the difference in behaviour between my code and the rational test case is because my scalar type doesn't subclass np.generic (aka. PyG