[Numpy-discussion] ANN: NumPy 1.5.0 beta 1

Ralf Gommers ralf.gommers@googlemail....
Sun Aug 8 02:09:00 CDT 2010


On Mon, Aug 2, 2010 at 10:30 AM, Alan G Isaac <alan.isaac@gmail.com> wrote:

> Tests produce a few failures and a couple warnings.
> Details below.
> Alan Isaac
>
>
> Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]
> on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import numpy as np
> >>> np.test()
> Running unit tests for numpy
> NumPy version 1.5.0b1
> NumPy is installed in C:\Python27\lib\site-packages\numpy
> Python version 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit
> (Intel)]
> nose version 0.11.0
>
> ..........................................................................................
>
> ....................E.....................................................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> .....................K....................................................................
>
> ..........................................................................................
>
> ..................................................................K.......................
> ...................................K..K.............Warning: invalid value
> encountered in
> absolute
> .Warning: invalid value encountered in absolute
>
> ................K........F....FFFF.....K.F.........FF..FFF.....F..........................
>
> ......................................................S...................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> .......................................K.........K........................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> ..........................................S...............................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> ..........................................................................................
>
> ..........................................................................................
> ................................................................
> ======================================================================
> ERROR: test_filename (test_memmap.TestMemmap)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\numpy\core\tests\test_memmap.py",
> line 60, in test_f
> ilename
>     os.unlink(tmpname)
> WindowsError: [Error 32] The process cannot access the file because it is
> being used by an
> other process: 'c:\\users\\alanis~1\\appdata\\local\\temp\\mmapoo5c2b'
>
> This should be fixed in r8606.


> ======================================================================
> FAIL: test_umath_complex.TestCexp.test_special_values(<ufunc 'exp'>, inf,
> 0, inf, 0)
> test_umath_complex.TestCexp.test_special_values(<ufunc 'exp'>, inf, 0, inf,
> 0)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 539, i
> n check_complex_value
>     assert_equal(f(z1), z2)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
> in assert_equal
>      return assert_array_equal(actual, desired, err_msg, verbose)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
> in assert_array_e
> qual
>     verbose=verbose, header='Arrays are not equal')
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
> in assert_array_c
> ompare
>     raise AssertionError(msg)
> AssertionError:
> Arrays are not equal
>
> (x and y nan location mismatch [ True], False mismatch)
>  x: array([ inf nanj])
>  y: array((inf+0j))
> >>  raise AssertionError('\nArrays are not equal\n\n(x and y nan location
> mismatch [ True]
> , False mismatch)\n x: array([ inf nanj])\n y: array((inf+0j))')
>
>
> ======================================================================
> FAIL: test_umath_complex.TestCexp.test_special_values(None,)
> test_umath_complex.TestCexp.test_special_values(None,)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 60, in
>   _check_ninf_inf
>     raise AssertionError(msgform %(z.real, z.imag))
> AssertionError: cexp(-inf, inf) is (nan, nan), expected (+-0, +-0)
> >>  raise AssertionError('cexp(-inf, inf) is (%f, %f), expected (+-0, +-0)'
> %((nan+nan*j).
> real, (nan+nan*j).imag))
>
>
> ======================================================================
> FAIL: test_umath_complex.TestCexp.test_special_values(None,)
> test_umath_complex.TestCexp.test_special_values(None,)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 73, in
>   _check_inf_inf
>     raise AssertionError(msgform % (z.real, z.imag))
> AssertionError: cexp(inf, inf) is (nan, nan), expected (+-inf, nan)
> >>  raise AssertionError('cexp(inf, inf) is (%f, %f), expected (+-inf,
> nan)' % ((nan+nan*j
> ).real, (nan+nan*j).imag))
>
>
> ======================================================================
> FAIL: test_umath_complex.TestCexp.test_special_values(None,)
> test_umath_complex.TestCexp.test_special_values(None,)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 86, in
>   _check_ninf_nan
>     raise AssertionError(msgform % (z.real, z.imag))
> AssertionError: cexp(-inf, nan) is (nan, nan), expected (+-0, +-0)
> >>  raise AssertionError('cexp(-inf, nan) is (%f, %f), expected (+-0, +-0)'
> % ((nan+nan*j)
> .real, (nan+nan*j).imag))
>
>
> ======================================================================
> FAIL: test_umath_complex.TestCexp.test_special_values(None,)
> test_umath_complex.TestCexp.test_special_values(None,)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 99, in
>   _check_inf_nan
>     raise AssertionError(msgform % (z.real, z.imag))
> AssertionError: cexp(-inf, nan) is (nan, nan), expected (+-inf, nan)
> >>  raise AssertionError('cexp(-inf, nan) is (%f, %f), expected (+-inf,
> nan)' % ((nan+nan*
> j).real, (nan+nan*j).imag))
>
>
> ======================================================================
> FAIL: test_special_values (test_umath_complex.TestClog)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 144, i
> n test_special_values
>     self.assertRaises(FloatingPointError, np.log, x)
> AssertionError: FloatingPointError not raised
>
>
> ======================================================================
> FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, 1,
> inf, inf, inf)
> test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, 1, inf,
> inf, inf)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 539, i
> n check_complex_value
>     assert_equal(f(z1), z2)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
> in assert_equal
>      return assert_array_equal(actual, desired, err_msg, verbose)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
> in assert_array_e
> qual
>     verbose=verbose, header='Arrays are not equal')
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
> in assert_array_c
> ompare
>     raise AssertionError(msg)
> AssertionError:
> Arrays are not equal
>
> (x and y nan location mismatch [ True], False mismatch)
>  x: array([ inf nanj])
>   y: array((inf+infj))
> >>  raise AssertionError('\nArrays are not equal\n\n(x and y nan location
> mismatch [ True]
> , False mismatch)\n x: array([ inf nanj])\n y: array((inf+infj))')
>
>
> ======================================================================
> FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, -1,
> inf, inf, inf)
> test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, -1, inf,
> inf, inf)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 539, i
> n check_complex_value
>     assert_equal(f(z1), z2)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
> in assert_equal
>      return assert_array_equal(actual, desired, err_msg, verbose)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
> in assert_array_e
> qual
>     verbose=verbose, header='Arrays are not equal')
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
> in assert_array_c
> ompare
>      raise AssertionError(msg)
> AssertionError:
> Arrays are not equal
>
> (x and y nan location mismatch [ True], False mismatch)
>  x: array([ nan infj])
>   y: array((inf+infj))
> >>  raise AssertionError('\nArrays are not equal\n\n(x and y nan location
> mismatch [ True]
> , False mismatch)\n x: array([ nan infj])\n y: array((inf+infj))')
>
>
> ======================================================================
> FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, inf,
> inf, inf, inf)
>
> test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, inf, inf,
> inf, inf)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 539, i
> n check_complex_value
>     assert_equal(f(z1), z2)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
> in assert_equal
>      return assert_array_equal(actual, desired, err_msg, verbose)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
> in assert_array_e
> qual
>     verbose=verbose, header='Arrays are not equal')
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
> in assert_array_c
> ompare
>     raise AssertionError(msg)
> AssertionError:
> Arrays are not equal
>
> (x and y nan location mismatch [ True], False mismatch)
>  x: array([ inf nanj])
>   y: array((inf+infj))
> >>  raise AssertionError('\nArrays are not equal\n\n(x and y nan location
> mismatch [ True]
> , False mismatch)\n x: array([ inf nanj])\n y: array((inf+infj))')
>
>
> ======================================================================
> FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>,
> -inf, inf, inf, inf
> )
> test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, -inf, inf,
> inf, inf)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 539, i
> n check_complex_value
>     assert_equal(f(z1), z2)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
> in assert_equal
>      return assert_array_equal(actual, desired, err_msg, verbose)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
> in assert_array_e
> qual
>     verbose=verbose, header='Arrays are not equal')
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
> in assert_array_c
> ompare
>      raise AssertionError(msg)
> AssertionError:
> Arrays are not equal
>
> (x and y nan location mismatch [ True], False mismatch)
>  x: array([ nan infj])
>   y: array((inf+infj))
> >>  raise AssertionError('\nArrays are not equal\n\n(x and y nan location
> mismatch [ True]
> , False mismatch)\n x: array([ nan infj])\n y: array((inf+infj))')
>
>
> ======================================================================
> FAIL: test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, nan,
> inf, inf, inf)
>
> test_umath_complex.TestCsqrt.test_special_values(<ufunc 'sqrt'>, nan, inf,
> inf, inf)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 539, i
> n check_complex_value
>     assert_equal(f(z1), z2)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 256,
> in assert_equal
>      return assert_array_equal(actual, desired, err_msg, verbose)
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 686,
> in assert_array_e
> qual
>     verbose=verbose, header='Arrays are not equal')
>    File "C:\Python27\lib\site-packages\numpy\testing\utils.py", line 596,
> in assert_array_c
> ompare
>      raise AssertionError(msg)
> AssertionError:
> Arrays are not equal
>
> (x and y nan location mismatch [ True], False mismatch)
>  x: array([ nan nanj])
>   y: array((inf+infj))
> >>  raise AssertionError('\nArrays are not equal\n\n(x and y nan location
> mismatch [ True]
> , False mismatch)\n x: array([ nan nanj])\n y: array((inf+infj))')
>
>
> ======================================================================
> FAIL: test_umath_complex.TestCsqrt.test_special_values(None,)
> test_umath_complex.TestCsqrt.test_special_values(None,)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "C:\Python27\lib\site-packages\nose\case.py", line 183, in runTest
>     self.test(*self.arg)
>   File
> "C:\Python27\lib\site-packages\numpy\core\tests\test_umath_complex.py", line
> 340, i
> n _check_ninf_nan
>     raise AssertionError(msgform % (z.real, z.imag))
> AssertionError: csqrt(-inf, nan) is (nan, nan), expected (nan, +-inf)
> >>  raise AssertionError('csqrt(-inf, nan) is (%f, %f), expected (nan,
> +-inf)' % ((nan+nan
> *j).real, (nan+nan*j).imag))
>
>
> Pauli or Charles, can you please have a look at these? Looks like that's
related to your recent work on nans/infs.

Thanks,
Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100808/afd60662/attachment-0001.html 


More information about the NumPy-Discussion mailing list