[Numpy-discussion] ANN: NumPy 1.2.0

Charles R Harris charlesr.harris at gmail.com
Mon Sep 29 13:05:09 EDT 2008


On Mon, Sep 29, 2008 at 2:00 AM, Matthieu Brucher <
matthieu.brucher at gmail.com> wrote:

> I've tested the latest Numpy on a RHEL 4, and I got this result :
>
> Running unit tests for numpy
> NumPy version 1.2.0
> NumPy is installed in /.../BRUCHER/local/lib/python2.5/site-packages/numpy
> Python version 2.5.2 (r252:60911, Sep 29 2008, 09:47:20) [GCC Intel(R)
> C++ gcc 3.4 mode]
> nose version 0.10.3
>
> ...........................................................................................................................................................................................................................................................................................................................................................................................................................................FFF.............K..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
>
>  ..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ctypes
> is not available on this python: skipping the test (import error was:
> ctypes is not available.)
> .No distutils available, skipping test.
> .....
> ======================================================================
> FAIL: test_umath.TestComplexFunctions.test_branch_cuts(<ufunc 'log'>,
> -0.5, 1j, 1, -1, True)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File
> "/data/pau112/INNO/BRUCHER/local/lib/python2.5/site-packages/nose/case.py",
> line 182, in runTest
>    self.test(*self.arg)
>  File
> "/data/pau112/INNO/BRUCHER/local/lib/python2.5/site-packages/numpy/core/tests/test_umath.py",
> line 333, in _check_branch_cut
>    assert np.all(np.absolute(y0.imag - ym.imag*im_sign) < atol), (y0, ym)
> AssertionError: (array([-0.69314718+3.14159265j]),
> array([-0.69314718+3.14159265j]))
>
> ======================================================================
> FAIL: test_umath.TestComplexFunctions.test_branch_cuts(<ufunc
> 'log10'>, -0.5, 1j, 1, -1, True)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File
> "/data/pau112/INNO/BRUCHER/local/lib/python2.5/site-packages/nose/case.py",
> line 182, in runTest
>    self.test(*self.arg)
>  File
> "/data/pau112/INNO/BRUCHER/local/lib/python2.5/site-packages/numpy/core/tests/test_umath.py",
> line 333, in _check_branch_cut
>    assert np.all(np.absolute(y0.imag - ym.imag*im_sign) < atol), (y0, ym)
> AssertionError: (array([-0.30103+1.36437635j]),
> array([-0.30103+1.36437635j]))
>
> ======================================================================
> FAIL: test_umath.TestComplexFunctions.test_branch_cuts(<ufunc
> 'log1p'>, -1.5, 1j, 1, -1, True)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File
> "/data/pau112/INNO/BRUCHER/local/lib/python2.5/site-packages/nose/case.py",
> line 182, in runTest
>    self.test(*self.arg)
>  File
> "/data/pau112/INNO/BRUCHER/local/lib/python2.5/site-packages/numpy/core/tests/test_umath.py",
> line 333, in _check_branch_cut
>    assert np.all(np.absolute(y0.imag - ym.imag*im_sign) < atol), (y0, ym)
> AssertionError: (array([-0.69314718+3.14159265j]),
> array([-0.69314718+3.14159265j]))
>

Using assert for this sort of thing is a bug, assert goes away with the -OO
options. This needs to be fixed.

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


More information about the NumPy-Discussion mailing list