[Python-modules-team] Bug#723722: python-scipy: stats.nanmean prints a warning when using NaN only array

Jürgen Fuchsberger juergen.fuchsberger at uni-graz.at
Thu Sep 19 07:12:32 UTC 2013


Package: python-scipy
Version: 0.10.1+dfsg2-1
Severity: normal

Hi,

Since upgrading to wheezy I get warnigs when using scipy.stats.nanmean
with NaN only data in python:

ipython
In [1]: from scipy import stats
In [2]: import numpy as np
In [3]: stats.nanmean([np.nan, np.nan])
/usr/lib/python2.7/dist-packages/scipy/stats/stats.py:274:
RuntimeWarning: invalid value encountered in double_scalars
  return np.mean(x,axis)/factor
  Out[3]: nan

Best,
Juergen

-- System Information:
Debian Release: 7.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-scipy depends on:
ii  libamd2.2.0                       1:3.4.0-3
ii  libblas3 [libblas.so.3]           1.2.20110419-5
ii  libc6                             2.13-38
ii  libgcc1                           1:4.7.2-5
ii  libgfortran3                      4.7.2-5
ii  liblapack3 [liblapack.so.3]       3.4.1+dfsg-1+deb70u1
ii  libquadmath0                      4.7.2-5
ii  libstdc++6                        4.7.2-5
ii  libumfpack5.4.0                   1:3.4.0-3
ii  python                            2.7.3-4
ii  python-numpy [python-numpy-abi9]  1:1.6.2-1.2

Versions of packages python-scipy recommends:
ii  g++ [c++-compiler]      4:4.7.2-1
ii  g++-4.7 [c++-compiler]  4.7.2-5
ii  python-dev              2.7.3-4
ii  python-imaging          1.1.7-4

Versions of packages python-scipy suggests:
ii  python [python-profiler]  2.7.3-4

-- no debconf information

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 291 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20130919/9311266f/attachment.sig>


More information about the Python-modules-team mailing list