Re: [Numpy-discussion] histogram2d and histogramdd return counts as floats while histogram returns ints

2012-05-14 Thread Nils Becker
is this intended? np.histogramdd([[1,2],[3,4]],bins=2) (array([[ 1., 0.], [ 0., 1.]]), [array([ 1. , 1.5, 2. ]), array([ 3. , 3.5, 4. ])]) np.histogram2d([1,2],[3,4],bins=2) (array([[ 1., 0.], [ 0., 1.]]), array([ 1. , 1.5, 2. ]), array([ 3. , 3.5, 4.

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-14 Thread mark florisson
On 12 May 2012 22:55, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/11/2012 03:37 PM, mark florisson wrote: On 11 May 2012 12:13, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no  wrote: (NumPy devs: I know, I get too many ideas. But this time I *really* believe in it, I think

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-14 Thread Richard Hattersley
For what it's worth, I'd prefer ndmasked. As has been mentioned elsewhere, some algorithms can't really cope with missing data. I'd very much rather they fail than silently give incorrect results. Working in the climate prediction business (as with many other domains I'm sure), even the

Re: [Numpy-discussion] ANN: NumPy 1.6.2 release candidate 1

2012-05-14 Thread Ralf Gommers
On Sun, May 13, 2012 at 1:14 PM, Paul Anton Letnes paul.anton.let...@gmail.com wrote: On Sat, May 12, 2012 at 9:50 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Sun, May 6, 2012 at 12:12 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, May 5, 2012 at 2:56

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-14 Thread Dag Sverre Seljebotn
On 05/14/2012 06:31 PM, mark florisson wrote: On 12 May 2012 22:55, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: On 05/11/2012 03:37 PM, mark florisson wrote: On 11 May 2012 12:13, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: (NumPy devs: I know, I get too many ideas.

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-14 Thread Dag Sverre Seljebotn
On 05/14/2012 10:36 PM, Dag Sverre Seljebotn wrote: On 05/14/2012 06:31 PM, mark florisson wrote: On 12 May 2012 22:55, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote: On 05/11/2012 03:37 PM, mark florisson wrote: On 11 May 2012 12:13, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no

Re: [Numpy-discussion] Correlation code from NumPy 1.5 Beginner's Guide

2012-05-14 Thread Paul Hobson
On Sun, May 13, 2012 at 9:48 AM, Dinesh Prasad dprasad...@yahoo.com wrote: Hello. I am new to the list thanks for accepting my question. I am trying to run the attached code, directly from the book in the title. It simply calculates correlation of returns of the stock listed in the

Re: [Numpy-discussion] Fixing issue of future opaqueness of ndarray this summer

2012-05-14 Thread David Cournapeau
On Mon, May 14, 2012 at 5:31 PM, mark florisson markflorisso...@gmail.comwrote: On 12 May 2012 22:55, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/11/2012 03:37 PM, mark florisson wrote: On 11 May 2012 12:13, Dag Sverre Seljebotnd.s.seljeb...@astro.uio.no wrote:

[Numpy-discussion] Fancy-indexing reorders output in corner cases?

2012-05-14 Thread Zachary Pincus
Hello all, The below seems to be a bug, but perhaps it's unavoidably part of the indexing mechanism? It's easiest to show via example... note that using [0,1] to pull two columns out of the array gives the same shape as using :2 in the simple case, but when there's additional slicing

Re: [Numpy-discussion] Fancy-indexing reorders output in corner cases?

2012-05-14 Thread Stéfan van der Walt
Hi Zach On Mon, May 14, 2012 at 4:33 PM, Zachary Pincus zachary.pin...@yale.edu wrote: The below seems to be a bug, but perhaps it's unavoidably part of the indexing mechanism? It's easiest to show via example... note that using [0,1] to pull two columns out of the array gives the same

Re: [Numpy-discussion] Fancy-indexing reorders output in corner cases?

2012-05-14 Thread Zachary Pincus
On Mon, May 14, 2012 at 4:33 PM, Zachary Pincus zachary.pin...@yale.edu wrote: The below seems to be a bug, but perhaps it's unavoidably part of the indexing mechanism? It's easiest to show via example... note that using [0,1] to pull two columns out of the array gives the same shape as

Re: [Numpy-discussion] Fancy-indexing reorders output in corner cases?

2012-05-14 Thread Travis Oliphant
On May 14, 2012, at 7:07 PM, Stéfan van der Walt wrote: Hi Zach On Mon, May 14, 2012 at 4:33 PM, Zachary Pincus zachary.pin...@yale.edu wrote: The below seems to be a bug, but perhaps it's unavoidably part of the indexing mechanism? It's easiest to show via example... note that using

Re: [Numpy-discussion] ANN: NumPy 1.6.2 release candidate 1

2012-05-14 Thread Paul Anton Letnes
On Mon, May 14, 2012 at 9:47 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Sun, May 13, 2012 at 1:14 PM, Paul Anton Letnes paul.anton.let...@gmail.com wrote: On Sat, May 12, 2012 at 9:50 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Sun, May 6, 2012 at 12:12 AM,