[Python-modules-team] Bug#702169: python-numpy: np.finfo(np.clongdouble).precision wrong on powerpc
Julian Taylor
jtaylor.debian at googlemail.com
Sun Mar 3 13:00:30 UTC 2013
Package: python-numpy
Version: 1:1.6.2-1
Severity: normal
some scipy tests fail on powerpc, this is because
import numpy as np;
np.finfo(np.clongdouble).precision
returns 75 on powerpc but it should return not more than about 18.
see e.g. the test_signaltools.TestCorrelateComplex256
https://buildd.debian.org/status/fetch.php?pkg=python-scipy&arch=powerpc&ver=0.11.0%2Bdfsg1-1&stamp=1362143334
the decimal is obtained in scipy/signal/tests/test_signaltools.py:553 via:
for datatype in [np.csingle, np.cdouble, np.clongdouble]:
cls = _get_testcorrelate_class(datatype, _TestCorrelateComplex)
cls.decimal = int(2 * np.finfo(datatype).precision / 3)
globals()[cls.__name__] = cls
More information about the Python-modules-team
mailing list