On 2011-04-07 06:09, Debian Bug Tracking System wrote:
> This is an automatic notification regarding your Bug report
> which was filed against the python-scipy package:
>
> #569008: python-scipy: scipy.stats.kde.gaussian_kde fails with non-obvious
> exception
>
> It has been closed by Varun Hiremath <[email protected]>.
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Varun Hiremath
> <[email protected]> by
> replying to this email.
>
Hello,
It appears that with upstream version 0.9.0 the bug is not fixed:
[9:01:09][tazle@orn][~/unsafe/pythons]% ./scipytest/bin/python -c 'from
scipy.stats.kde import gaussian_kde; gaussian_kde([1])'
Warning: invalid value encountered in divide
Traceback (most recent call last):
File "<string>", line 1, in <module>
File
"/home/tazle/unsafe/pythons/scipytest/lib/python2.5/site-packages/scipy/stats/kde.py",
line 88, in __init__
self._compute_covariance()
File
"/home/tazle/unsafe/pythons/scipytest/lib/python2.5/site-packages/scipy/stats/kde.py",
line 341, in _compute_covariance
self.inv_cov = linalg.inv(self.covariance)
File
"/home/tazle/unsafe/pythons/scipytest/lib/python2.5/site-packages/scipy/linalg/basic.py",
line 285, in inv
a1 = asarray_chkfinite(a)
File
"/home/tazle/unsafe/pythons/scipytest/lib/python2.5/site-packages/numpy/lib/function_base.py",
line 547, in asarray_chkfinite
"array must not contain infs or NaNs")
ValueError: array must not contain infs or NaNs
I did not test with the actual Debian package, since I do not have
unstable installation around. However, this should not be important,
since the changelog indicates that upstream changes are what should
close #569008.
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team