[Numpy-discussion] ANN: NumPy 1.6.2 release candidate 1

Charles R Harris charlesr.harris at gmail.com
Sat May 5 17:06:31 EDT 2012


On Sat, May 5, 2012 at 2:56 PM, Paul Anton Letnes <
paul.anton.letnes at gmail.com> wrote:

> Hi,
>
> I'm getting a couple of errors when testing. System:
> Arch Linux (updated today)
> Python 3.2.3
> gcc 4.7.0
> (Anything else?)
>
> I think that this error:
> AssertionError: selectedrealkind(19): expected -1 but got 16
> is due to the fact that newer versions of gfortran actually supports
> precision this high (quad precision).
>
> Cheers
> Paul
>
>
> python -c 'import numpy;numpy.test("full")'
> Running unit tests for numpy
> NumPy version 1.6.1
> NumPy is installed in /usr/lib/python3.2/site-packages/numpy
> Python version 3.2.3 (default, Apr 23 2012, 23:35:30) [GCC 4.7.0
> 20120414 (prerelease)]
> nose version 1.1.2
>
> ....S.................................................................................................................................................................................................................................................................................S......................................................................................................................................................................................................................................................................................................................................................................................................................SSS...........................................................................................K............................................................................K.............................................................................................................K.................................................................................................K......................K..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................../usr/lib/python3.2/site-packages/numpy/lib/format.py:575:
> ResourceWarning: unclosed file <_io.BufferedReader
> name='/tmp/tmpmkxhkq'>
>  mode=mode, offset=offset)
>
> ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................/usr/lib/python3.2/subprocess.py:471:
> ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb'>
>  return Popen(*popenargs, **kwargs).wait()
> /usr/lib/python3.2/subprocess.py:471: ResourceWarning: unclosed file
> <_io.FileIO name=7 mode='rb'>
>  return Popen(*popenargs, **kwargs).wait()
>
> ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F...................................................................................................................
> ======================================================================
> FAIL: test_kind.TestKind.test_all
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python3.2/site-packages/nose/case.py", line 198, in runTest
>    self.test(*self.arg)
>  File "/usr/lib/python3.2/site-packages/numpy/f2py/tests/test_kind.py",
> line 30, in test_all
>    'selectedrealkind(%s): expected %r but got %r' %  (i,
> selected_real_kind(i), selectedrealkind(i)))
>  File "/usr/lib/python3.2/site-packages/numpy/testing/utils.py", line
> 34, in assert_
>    raise AssertionError(msg)
> AssertionError: selectedrealkind(19): expected -1 but got 16
>

This should have been fixed. Hmm...


>
> ======================================================================
> FAIL: test_pareto (test_random.TestRandomDist)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib/python3.2/site-packages/numpy/random/tests/test_random.py",
> line 313, in test_pareto
>    np.testing.assert_array_almost_equal(actual, desired, decimal=15)
>  File "/usr/lib/python3.2/site-packages/numpy/testing/utils.py", line
> 800, in assert_array_almost_equal
>    header=('Arrays are not almost equal to %d decimals' % decimal))
>  File "/usr/lib/python3.2/site-packages/numpy/testing/utils.py", line
> 636, in assert_array_compare
>    raise AssertionError(msg)
> AssertionError:
> Arrays are not almost equal to 15 decimals
>
> (mismatch 16.66666666666667%)
>  x: array([[  2.46852460e+03,   1.41286881e+03],
>       [  5.28287797e+07,   6.57720981e+07],
>       [  1.40840323e+02,   1.98390255e+05]])
>  y: array([[  2.46852460e+03,   1.41286881e+03],
>       [  5.28287797e+07,   6.57720981e+07],
>       [  1.40840323e+02,   1.98390255e+05]])
>
>
I can't think of anything that would affect this apart from the compiler
version. Perhaps the precision needs to be backed off a bit.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120505/b8d41aa0/attachment.html>


More information about the NumPy-Discussion mailing list