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

2011-04-01 Thread Ralf Gommers
On Thu, Mar 31, 2011 at 8:00 PM, Benjamin Root wrote: > > > On Thu, Mar 31, 2011 at 12:32 PM, Ralf Gommers > wrote: >> >> -- Forwarded message -- >> From: Ralf Gommers >> Date: Thu, Mar 31, 2011 at 7:31 PM >> Subject: Re: [Numpy-disc

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 wrote: > -- Forwarded message -- > From: Ralf Gommers > Date: Thu, Mar 31, 2011 at 7:31 PM > Subject: Re: [Numpy-discussion] np.histogramdd of empty data > To: Nils Becker > > > On Thu, Mar 31, 2011 at 12:3

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

2011-03-31 Thread Ralf Gommers
-- Forwarded message -- From: Ralf Gommers Date: Thu, Mar 31, 2011 at 7:31 PM Subject: Re: [Numpy-discussion] np.histogramdd of empty data To: Nils Becker On Thu, Mar 31, 2011 at 12:33 PM, Nils Becker wrote: > Hi Ralf, > > I cloned numpy/master and played around

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 arbitrar

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 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 > function. Many

[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 ar