Re: [Numpy-discussion] numpy histogram normed=True (bug / confusing behavior)

2010-08-28 Thread Robert Kern
On Sat, Aug 28, 2010 at 04:12, Zbyszek Szmek wrote: > Hi, > > On Fri, Aug 27, 2010 at 06:43:26PM -0600, Charles R Harris wrote: >>    On Fri, Aug 27, 2010 at 2:47 PM, Robert Kern >>    wrote: >> >>      On Fri, Aug 27, 2010 at 15:32, David Huard >>      wrote: >>      > Nils and Joseph, >>      

[Numpy-discussion] [ANN] Reminder: Autumn School "Advanced Scientific Programming in Python" in Trento, It aly

2010-08-28 Thread Tiziano Zito
Reminder: Application deadline is August 31st, 2010! === Advanced Scientific Programming in Python = an Autumn School by the G-Node, the Center for Mind/Brain Sciences and the Fondazione Bruno Kessler Scient

Re: [Numpy-discussion] Boolean arrays

2010-08-28 Thread Francesc Alted
2010/8/27, Robert Kern : > [~] > |2> def kern_in(x, valid): > ..> mask = np.zeros(x.shape, dtype=bool) > ..> for good in valid: > ..> mask |= (x == good) > ..> return mask > ..> > > [~] > |6> ar = np.random.randint(100, size=100) > > [~] > |7> valid = np.arange(0, 100, 5) >

Re: [Numpy-discussion] numpy histogram normed=True (bug / confusing behavior)

2010-08-28 Thread Zbyszek Szmek
Hi, On Fri, Aug 27, 2010 at 06:43:26PM -0600, Charles R Harris wrote: >On Fri, Aug 27, 2010 at 2:47 PM, Robert Kern >wrote: > > On Fri, Aug 27, 2010 at 15:32, David Huard > wrote: > > Nils and Joseph, > > Thanks for the bug report, this is now fixed in SVN (r8672). >