[Python-modules-team] Bug#470293: python-numpy: bug in numpy.histogram
Manuel Metz
mmetz at astro.uni-bonn.de
Tue Mar 11 15:33:44 UTC 2008
Ondrej Certik wrote:
> 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
Hi,
okay, I've seen that there are plans to release numpy 1.0.5 on Wednesday
(tomorrow). So I think a patch is not needed.
Manuel
More information about the Python-modules-team
mailing list