[Python-modules-team] Bug#470293: python-numpy: bug in numpy.histogram

Ondrej Certik ondrej at certik.cz
Mon Mar 10 14:38:04 UTC 2008


On Mon, Mar 10, 2008 at 3:10 PM, Manuel Metz <mmetz at astro.uni-bonn.de> wrote:
> Package: python-numpy
>  Version: 1:1.0.4-6
>  Severity: important
>  Tags: patch
>
>
>  There is a bug in site-packages/numpy/lib/function_base.py, line 154
>
>  The line is
>   if(any(bins[1:]-bins[:-1] < 0)):
>  which causes an error
>   NameError: global name 'any' is not defined
>
>
>  It should be:
>   if(bins[1:]-bins[:-1] < 0).any():
>
>  see also
>   http://www.mail-archive.com/numpy-discussion@scipy.org/msg06746.html

Thanks for the bugreport. This is fixed in the upstream svn. Upstream
should release a new version of numpy soon, so then it will be fixed.
If you want to have it fixed earlier, feel free to commit a patch with
this into the numpy debian svn (see the Vcs-svn field) and I'll upload
a new revision. Add it to debian/patches.

Ondrej





More information about the Python-modules-team mailing list