Re: [Numpy-discussion] histogram2d error with empty inputs

2011-07-06 Thread Benjamin Root
On Wednesday, July 6, 2011, Ralf Gommers wrote: > > > On Mon, Jun 27, 2011 at 9:38 PM, Benjamin Root wrote: > > I found another empty input edge case.  Somewhat recently, we fixed an issue > with np.histogram() and empty inputs (so long as the bins are somehow known). > np.histogram([], bin

Re: [Numpy-discussion] histogram2d error with empty inputs

2011-07-06 Thread Ralf Gommers
On Mon, Jun 27, 2011 at 9:38 PM, Benjamin Root wrote: > I found another empty input edge case. Somewhat recently, we fixed an > issue with np.histogram() and empty inputs (so long as the bins are somehow > known). > > >>> np.histogram([], bins=4) > (array([0, 0, 0, 0]), array([ 0. , 0.25, 0.5

[Numpy-discussion] histogram2d error with empty inputs

2011-06-27 Thread Benjamin Root
I found another empty input edge case. Somewhat recently, we fixed an issue with np.histogram() and empty inputs (so long as the bins are somehow known). >>> np.histogram([], bins=4) (array([0, 0, 0, 0]), array([ 0. , 0.25, 0.5 , 0.75, 1. ])) However, histogram2d needs the same treatment.