[Numpy-discussion] numpy release

David Huard david.huard at gmail.com
Fri Apr 25 17:04:26 EDT 2008


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 at gmail.com>:

>
>
> On Fri, Apr 25, 2008 at 12:55 PM, Jarrod Millman <millman at berkeley.edu>
> wrote:
>
> > On Fri, Apr 25, 2008 at 12:55 PM, David Huard <david.huard at 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 at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080425/a574400a/attachment.html>


More information about the NumPy-Discussion mailing list