[Numpy-discussion] ANN: Numpy 1.6.0 beta 1

Derek Homeier derek@astro.physik.uni-goettingen...
Wed Mar 23 18:34:12 CDT 2011


Hi again,

On 23 Mar 2011, at 17:07, Ralf Gommers wrote:

> I am pleased to announce the availability of the first beta of NumPy
> 1.6.0. Due to the extensive changes in the Numpy core for this
> release, the beta testing phase will last at least one month. Please
> test this beta and report any problems on the Numpy mailing list.

tests with the fink-installed pythons on MacOS X mostly succeeded,
with one failure in python2.4 and a couple of issues seemingly
related to PPC floating point accuracy, as below:

OSX/Python	2.4 			2.5 		2.6 		2.7 		3.1 		3.2
10.5/i386 	FAIL[1] 		pass	pass	pass	pass	pass
10.5/ppc 	FAIL[1,2]	FAIL[2]	FAIL[2]	FAIL[2]	FAIL[2]	FAIL[2]
10.6/x86_64	n/a   		pass	pass	pass	pass	pass

Failures:
[1]
Python 2.4.4 (#1, Jan  5 2011, 03:05:41)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy
 >>> numpy.test('full')
Running unit tests for numpy
NumPy version 1.6.0b1
NumPy is installed in /sw/lib/python2.4/site-packages/numpy
Python version 2.4.4 (#1, Jan  5 2011, 03:05:41) [GCC 4.0.1 (Apple  
Inc. build 5493)]
nose version 1.0.0
........
FAIL: test_iterator.test_iter_broadcasting_errors
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/sw/lib/python2.4/site-packages/nose/case.py", line 187, in  
runTest
     self.test(*self.arg)
   File "/sw/lib/python2.4/site-packages/numpy/core/tests/ 
test_iterator.py", line 639, in test_iter_broadcasting_errors
     'Message "%s" doesn\'t contain operand shape (2,3)' % msg)
   File "/sw/lib/python2.4/site-packages/numpy/testing/utils.py", line  
34, in assert_
     raise AssertionError(msg)
AssertionError: Message "non-broadcastable output operand with shape  
(%zd,%zd) doesn't match the broadcast shape (%zd,%zd,%zd)" doesn't  
contain operand shape (2,3)

[2] identical in
Python 2.5.5 (r255:77872, Jan  4 2011, 03:26:36)
Python 2.6.6 (r266:84292, Jan  4 2011, 03:36:52)
Python 2.7.1 (r271:86832, Dec 17 2010, 19:39:40)
Python 3.1.3 (r313:86834, Dec 17 2010, 19:49:56)
Python 3.2 (r32:88445, Mar  1 2011, 18:28:16)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy
 >>> numpy.test()
Running unit tests for numpy
NumPy version 1.6.0b1
NumPy is installed in /sw/lib/python3.2/site-packages/numpy
Python version 3.2 (r32:88445, Mar  1 2011, 18:28:16) [GCC 4.0.1  
(Apple Inc. build 5493)]
nose version 1.0.0
..............................................................................................................................................Warning 
: overflow encountered in add
Warning: invalid value encountered in subtract
Warning: invalid value encountered in subtract
Warning: overflow encountered in add
Warning: invalid value encountered in subtract
Warning: invalid value encountered in subtract
..................................................................................................................................................................................................................................................................................................................FF 
................................................................................................................................................................................................................................K 
.....................................................................Warning 
: invalid value encountered in true_divide
Warning: invalid value encountered in true_divide
Warning: invalid value encountered in true_divide
.................................................................................................................K 
...K 
...........................................................F 
..F.....Warning: invalid value encountered in exp
.........................K 
...SK 
.S 
.......S 
........................................................................ 
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................./sw 
/lib/python3.2/site-packages/numpy/lib/format.py:575: ResourceWarning:  
unclosed file <_io.BufferedReader name='/scratch/derek/tmp/tmpuqv5id'>
   mode=mode, offset=offset)
........................................................................ 
........................................................................ 
........................................................................ 
........................................................................ 
........................................................................ 
........................................................................ 
......................S...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: Test basic arithmetic function errors
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/sw/lib/python3.2/site-packages/numpy/core/tests/ 
test_numeric.py", line 308, in test_floating_exceptions
     lambda a,b:a/b, ft_tiny, ft_max)
   File "/sw/lib/python3.2/site-packages/numpy/core/tests/ 
test_numeric.py", line 261, in assert_raises_fpe
     "Type %s did not raise fpe error '%s'." % (ftype, fpeerr))
   File "/sw/lib/python3.2/site-packages/numpy/testing/utils.py", line  
34, in assert_
     raise AssertionError(msg)
AssertionError: Type <class 'numpy.float128'> did not raise fpe error  
'underflow'.

======================================================================
FAIL: Test basic arithmetic function errors
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/sw/lib/python3.2/site-packages/numpy/testing/decorators.py",  
line 216, in knownfailer
     return f(*args, **kwargs)
   File "/sw/lib/python3.2/site-packages/numpy/core/tests/ 
test_numeric.py", line 352, in test_floating_exceptions_power
     np.power, ftype(2), ftype(2**fi.nexp))
   File "/sw/lib/python3.2/site-packages/numpy/core/tests/ 
test_numeric.py", line 261, in assert_raises_fpe
     "Type %s did not raise fpe error '%s'." % (ftype, fpeerr))
   File "/sw/lib/python3.2/site-packages/numpy/testing/utils.py", line  
34, in assert_
     raise AssertionError(msg)
AssertionError: Type <class 'numpy.float128'> did not raise fpe error  
'overflow'.

======================================================================
FAIL: test_umath.test_nextafterl
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/sw/lib/python3.2/site-packages/nose/case.py", line 188, in  
runTest
     self.test(*self.arg)
   File "/sw/lib/python3.2/site-packages/numpy/testing/decorators.py",  
line 216, in knownfailer
     return f(*args, **kwargs)
   File "/sw/lib/python3.2/site-packages/numpy/core/tests/ 
test_umath.py", line 1085, in test_nextafterl
     return _test_nextafter(np.longdouble)
   File "/sw/lib/python3.2/site-packages/numpy/core/tests/ 
test_umath.py", line 1071, in _test_nextafter
     assert np.nextafter(one, two) - one == eps
AssertionError

======================================================================
FAIL: test_umath.test_spacingl
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/sw/lib/python3.2/site-packages/nose/case.py", line 188, in  
runTest
     self.test(*self.arg)
   File "/sw/lib/python3.2/site-packages/numpy/testing/decorators.py",  
line 216, in knownfailer
     return f(*args, **kwargs)
   File "/sw/lib/python3.2/site-packages/numpy/core/tests/ 
test_umath.py", line 1110, in test_spacingl
     return _test_spacing(np.longdouble)
   File "/sw/lib/python3.2/site-packages/numpy/core/tests/ 
test_umath.py", line 1094, in _test_spacing
     assert np.spacing(one) == eps
AssertionError

----------------------------------------------------------------------
Ran 3362 tests in 64.845s

FAILED (KNOWNFAIL=5, SKIP=4, failures=4)


More information about the NumPy-Discussion mailing list