Thanks Chuck,

I didn't know there were other tests for histogram outside of test_function_base.

The error is now raised only if bins are passed explicitly and normed=True.

David

2008/4/25 Charles R Harris <charlesr.harris@gmail.com>:


On Fri, Apr 25, 2008 at 12:55 PM, Jarrod Millman <millman@berkeley.edu> wrote:
On Fri, Apr 25, 2008 at 12:55 PM, David Huard <david.huard@gmail.com> wrote:
> > Done in r5085. I added a bunch of tests, but I'd appreciate if someone
> could double check before the release. This is not the time to introduce new
> bugs.
> >
> > Hopefully this is the end of the histogram saga.
> >
>

This one?

ERROR: Ticket #632
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/numpy/core/tests/test_regression.py", line 812, in check_hist_bins_as_list
    hist,edges = np.histogram([1,2,3,4],[1,2])
  File "/usr/lib/python2.5/site-packages/numpy/lib/function_base.py", line 184, in histogram
    raise ValueError, 'Use new=True to pass bin edges explicitly.'
ValueError: Use new=True to pass bin edges explicitly.

Chuck


_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion