Re: [Numpy-discussion] np.histogramdd of empty data

2011-04-01 Thread Ralf Gommers
: [Numpy-discussion] np.histogramdd of empty data To: Nils Becker n.bec...@amolf.nl On Thu, Mar 31, 2011 at 12:33 PM, Nils Becker n.bec...@amolf.nl wrote: Hi Ralf, I cloned numpy/master and played around a little. when giving the bins explicitely, now histogram2d and histogramdd work

Re: [Numpy-discussion] np.histogramdd of empty data

2011-03-31 Thread Nils Becker
Hi Ralf, I cloned numpy/master and played around a little. when giving the bins explicitely, now histogram2d and histogramdd work as expected in all tests i tried. However, some of the cases with missing bin specification appear somewhat inconsistent. The first question is if creating

Re: [Numpy-discussion] np.histogramdd of empty data

2011-03-31 Thread Ralf Gommers
-- Forwarded message -- From: Ralf Gommers ralf.gomm...@googlemail.com Date: Thu, Mar 31, 2011 at 7:31 PM Subject: Re: [Numpy-discussion] np.histogramdd of empty data To: Nils Becker n.bec...@amolf.nl On Thu, Mar 31, 2011 at 12:33 PM, Nils Becker n.bec...@amolf.nl wrote: Hi Ralf

Re: [Numpy-discussion] np.histogramdd of empty data

2011-03-31 Thread Benjamin Root
On Thu, Mar 31, 2011 at 12:32 PM, Ralf Gommers ralf.gomm...@googlemail.comwrote: -- Forwarded message -- From: Ralf Gommers ralf.gomm...@googlemail.com Date: Thu, Mar 31, 2011 at 7:31 PM Subject: Re: [Numpy-discussion] np.histogramdd of empty data To: Nils Becker n.bec

Re: [Numpy-discussion] np.histogramdd of empty data

2011-03-23 Thread Ralf Gommers
On Tue, Mar 22, 2011 at 11:28 AM, Nils Becker n.bec...@amolf.nl wrote: Hi, I was wondering why histogram2d and histogramdd raise a ValueError when fed with empty data of the correct dimensions. I came across this as a corner case when calling histogram2d from my own specialized histogram

[Numpy-discussion] np.histogramdd of empty data

2011-03-22 Thread Nils Becker
Hi, I was wondering why histogram2d and histogramdd raise a ValueError when fed with empty data of the correct dimensions. I came across this as a corner case when calling histogram2d from my own specialized histogram function. In comparison, histogram does handle this case correctly when bins