
I'm getting a failure and two errors with the latest master branch: $ python -c "import numpy; numpy.test('full')" Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/warren/local_numpy/lib/python2.7/site-packages/numpy Python version 2.7.4 |Anaconda 1.5.0 (64-bit)| (default, Apr 21 2013, 17:43:08) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] nose version 1.3.0 .....................F...................................................................................................................................................................................................................................................................................................................S...............................................................................................................................S..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K........................................E.E.................................................................................................................................................SSS...............................................................................................................................................................................................................................................................................................................................................K........................................................................................................K......................K...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SS..SS.....................................................................................................SSSSSSSS................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.................................................... ====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute ====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute ====================================================================== FAIL: Test numpy dot with different order C, F ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_blasdot.py", line 114, in test_dot_array_order assert_almost_equal(a.dot(a), a.T.dot(a.T).T, decimal=30) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 458, in assert_almost_equal return assert_array_almost_equal(actual, desired, decimal, err_msg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 819, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 652, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 30 decimals (mismatch 26.0%) x: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058012, -3.95746613, 1.52435613, -0.59853059, -3.72278619, 3.82375932, 5.51367044], [-3.58154893, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,... y: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058001, -3.95746613, 1.52435613, -0.59853059, -3.72278643, 3.82375932, 5.51367044], [-3.58154917, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,... ---------------------------------------------------------------------- Ran 5151 tests in 60.506s FAILED (KNOWNFAIL=5, SKIP=17, errors=2, failures=1) Warren

On Sat, Jun 1, 2013 at 4:50 PM, Warren Weckesser <warren.weckesser@gmail.com
wrote:
I'm getting a failure and two errors with the latest master branch:
$ python -c "import numpy; numpy.test('full')" Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/warren/local_numpy/lib/python2.7/site-packages/numpy Python version 2.7.4 |Anaconda 1.5.0 (64-bit)| (default, Apr 21 2013, 17:43:08) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] nose version 1.3.0
.....................F...................................................................................................................................................................................................................................................................................................................S...............................................................................................................................S..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K........................................E.E.................................................................................................................................................SSS...............................................................................................................................................................................................................................................................................................................................................K........................................................................................................K......................K...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SS..SS.....................................................................................................SSSSSSSS................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.................................................... ====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== FAIL: Test numpy dot with different order C, F ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_blasdot.py", line 114, in test_dot_array_order assert_almost_equal(a.dot(a), a.T.dot(a.T).T, decimal=30) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 458, in assert_almost_equal return assert_array_almost_equal(actual, desired, decimal, err_msg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 819, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 652, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 30 decimals
Thirty decimals? What architecture?
(mismatch 26.0%) x: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058012, -3.95746613, 1.52435613, -0.59853059, -3.72278619, 3.82375932, 5.51367044], [-3.58154893, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,... y: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058001, -3.95746613, 1.52435613, -0.59853059, -3.72278643, 3.82375932, 5.51367044], [-3.58154917, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,...
---------------------------------------------------------------------- Ran 5151 tests in 60.506s
FAILED (KNOWNFAIL=5, SKIP=17, errors=2, failures=1)
I don't see any of these with Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/charris/.local/lib/python2.7/site-packages/numpy Python version 2.7.3 (default, Aug 9 2012, 17:23:57) [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] nose version 1.3.0 I'll guess it's the ancient version of gcc. Chuck

On Sat, Jun 1, 2013 at 7:47 PM, Charles R Harris <charlesr.harris@gmail.com>wrote:
On Sat, Jun 1, 2013 at 4:50 PM, Warren Weckesser < warren.weckesser@gmail.com> wrote:
I'm getting a failure and two errors with the latest master branch:
$ python -c "import numpy; numpy.test('full')" Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/warren/local_numpy/lib/python2.7/site-packages/numpy Python version 2.7.4 |Anaconda 1.5.0 (64-bit)| (default, Apr 21 2013, 17:43:08) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] nose version 1.3.0
.....................F...................................................................................................................................................................................................................................................................................................................S...............................................................................................................................S..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K........................................E.E.................................................................................................................................................SSS...............................................................................................................................................................................................................................................................................................................................................K........................................................................................................K......................K...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SS..SS.....................................................................................................SSSSSSSS................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.................................................... ====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== FAIL: Test numpy dot with different order C, F ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_blasdot.py", line 114, in test_dot_array_order assert_almost_equal(a.dot(a), a.T.dot(a.T).T, decimal=30) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 458, in assert_almost_equal return assert_array_almost_equal(actual, desired, decimal, err_msg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 819, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 652, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 30 decimals
Thirty decimals? What architecture?
(mismatch 26.0%) x: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058012, -3.95746613, 1.52435613, -0.59853059, -3.72278619, 3.82375932, 5.51367044], [-3.58154893, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,... y: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058001, -3.95746613, 1.52435613, -0.59853059, -3.72278643, 3.82375932, 5.51367044], [-3.58154917, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,...
---------------------------------------------------------------------- Ran 5151 tests in 60.506s
FAILED (KNOWNFAIL=5, SKIP=17, errors=2, failures=1)
I don't see any of these with
Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/charris/.local/lib/python2.7/site-packages/numpy Python version 2.7.3 (default, Aug 9 2012, 17:23:57) [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] nose version 1.3.0
I'll guess it's the ancient version of gcc.
I'm using Ubuntu 12.04, so I suspect I won't be the only one who sees these. Warren Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

On Sat, 2013-06-01 at 20:09 -0400, Warren Weckesser wrote:
I'm using Ubuntu 12.04, so I suspect I won't be the only one who sees these.
gcc on 12.04 (precise) should be 4.6.3 See http://packages.ubuntu.com/search?keywords=gcc&searchon=names&suite=precise§ion=all

On Tue, Jun 4, 2013 at 1:20 AM, Tim Burgess <tim.burgess@noaa.gov> wrote:
On Sat, 2013-06-01 at 20:09 -0400, Warren Weckesser wrote:
I'm using Ubuntu 12.04, so I suspect I won't be the only one who sees these.
gcc on 12.04 (precise) should be 4.6.3
See
http://packages.ubuntu.com/search?keywords=gcc&searchon=names&suite=precise§ion=all
Yes, that's what it is. The python from the Anaconda package includes "[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2" in its banner, so I guess Anaconda is built with an even older gcc. If I build python myself (with ubuntu's gcc 4.6.3), I get the same failure and two errors that I originally reported. In this case, I used python 3.3.1: $ python3 -c "import numpy as np; np.test('full')" Running unit tests for numpy NumPy version 1.8.0.dev-e9e490a NumPy is installed in /home/warren/local_numpy/lib/python3.3/site-packages/numpy Python version 3.3.1 (default, Apr 13 2013, 13:42:07) [GCC 4.6.3] nose version 1.2.1 <snip> ====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/local_py331/lib/python3.3/site-packages/nose-1.2.1-py3.3.egg/nose/case.py", line 198, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute ====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/local_py331/lib/python3.3/site-packages/nose-1.2.1-py3.3.egg/nose/case.py", line 198, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute ====================================================================== FAIL: Test numpy dot with different order C, F ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/local_py331/lib/python3.3/site-packages/nose-1.2.1-py3.3.egg/nose/case.py", line 198, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/tests/test_blasdot.py", line 114, in test_dot_array_order assert_almost_equal(a.dot(a), a.T.dot(a.T).T, decimal=30) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/testing/utils.py", line 458, in assert_almost_equal return assert_array_almost_equal(actual, desired, decimal, err_msg) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/testing/utils.py", line 819, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/testing/utils.py", line 652, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 30 decimals (mismatch 10.0%) x: array([[ 0.60970883, 1.6909554 , -1.0885194 , -1.82058004, -3.95746616, 1.52435604, -0.59853062, -3.72278631, 3.82375941, 5.51367039], [-3.58154905, -2.0623123 , -0.06567267, 1.47373436, 2.60687462,... y: array([[ 0.60970883, 1.6909554 , -1.0885194 , -1.82058004, -3.95746616, 1.52435604, -0.59853062, -3.72278631, 3.82375941, 5.51367039], [-3.58154905, -2.0623123 , -0.06567267, 1.47373436, 2.60687462,... ---------------------------------------------------------------------- Ran 5150 tests in 33.772s FAILED (KNOWNFAIL=6, SKIP=18, errors=2, failures=1) Warren
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

On Tue, Jun 4, 2013 at 7:52 AM, Warren Weckesser <warren.weckesser@gmail.com
wrote:
On Tue, Jun 4, 2013 at 1:20 AM, Tim Burgess <tim.burgess@noaa.gov> wrote:
On Sat, 2013-06-01 at 20:09 -0400, Warren Weckesser wrote:
I'm using Ubuntu 12.04, so I suspect I won't be the only one who sees these.
gcc on 12.04 (precise) should be 4.6.3
See
http://packages.ubuntu.com/search?keywords=gcc&searchon=names&suite=precise§ion=all
Yes, that's what it is. The python from the Anaconda package includes "[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2" in its banner, so I guess Anaconda is built with an even older gcc.
If I build python myself (with ubuntu's gcc 4.6.3), I get the same failure and two errors that I originally reported. In this case, I used python 3.3.1:
$ python3 -c "import numpy as np; np.test('full')"
Running unit tests for numpy NumPy version 1.8.0.dev-e9e490a NumPy is installed in /home/warren/local_numpy/lib/python3.3/site-packages/numpy Python version 3.3.1 (default, Apr 13 2013, 13:42:07) [GCC 4.6.3] nose version 1.2.1
<snip>
====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/local_py331/lib/python3.3/site-packages/nose-1.2.1-py3.3.egg/nose/case.py", line 198, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose
assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/numeric.py", line 2008, in allclose
return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/local_py331/lib/python3.3/site-packages/nose-1.2.1-py3.3.egg/nose/case.py", line 198, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose
assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/numeric.py", line 2008, in allclose
return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== FAIL: Test numpy dot with different order C, F ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/local_py331/lib/python3.3/site-packages/nose-1.2.1-py3.3.egg/nose/case.py", line 198, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/tests/test_blasdot.py", line 114, in test_dot_array_order assert_almost_equal(a.dot(a), a.T.dot(a.T).T, decimal=30) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/testing/utils.py", line 458, in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/testing/utils.py", line 819, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/testing/utils.py", line 652, in assert_array_compare
raise AssertionError(msg) AssertionError: Arrays are not almost equal to 30 decimals
(mismatch 10.0%) x: array([[ 0.60970883, 1.6909554 , -1.0885194 , -1.82058004, -3.95746616, 1.52435604, -0.59853062, -3.72278631, 3.82375941, 5.51367039], [-3.58154905, -2.0623123 , -0.06567267, 1.47373436, 2.60687462,... y: array([[ 0.60970883, 1.6909554 , -1.0885194 , -1.82058004, -3.95746616, 1.52435604, -0.59853062, -3.72278631, 3.82375941, 5.51367039], [-3.58154905, -2.0623123 , -0.06567267, 1.47373436, 2.60687462,...
---------------------------------------------------------------------- Ran 5150 tests in 33.772s
FAILED (KNOWNFAIL=6, SKIP=18, errors=2, failures=1)
Warren
I created an issue for this: https://github.com/numpy/numpy/issues/3399 Warren
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

On Sat, Jun 1, 2013 at 7:47 PM, Charles R Harris <charlesr.harris@gmail.com>wrote:
On Sat, Jun 1, 2013 at 4:50 PM, Warren Weckesser < warren.weckesser@gmail.com> wrote:
I'm getting a failure and two errors with the latest master branch:
$ python -c "import numpy; numpy.test('full')" Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/warren/local_numpy/lib/python2.7/site-packages/numpy Python version 2.7.4 |Anaconda 1.5.0 (64-bit)| (default, Apr 21 2013, 17:43:08) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] nose version 1.3.0
.....................F...................................................................................................................................................................................................................................................................................................................S...............................................................................................................................S..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K........................................E.E.................................................................................................................................................SSS...............................................................................................................................................................................................................................................................................................................................................K........................................................................................................K......................K...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SS..SS.....................................................................................................SSSSSSSS................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.................................................... ====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== FAIL: Test numpy dot with different order C, F ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_blasdot.py", line 114, in test_dot_array_order assert_almost_equal(a.dot(a), a.T.dot(a.T).T, decimal=30) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 458, in assert_almost_equal return assert_array_almost_equal(actual, desired, decimal, err_msg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 819, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 652, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 30 decimals
Thirty decimals? What architecture?
`decimal=30` is used in three places in numpy/core/tests/test_blasdot.py, in the function `test_dot_array_order()`. It looks like the argument should be `decimal=prec`. If I make that change, the above test passes, but I get a failure in a test for array equality in the same function (lines 119-120): a_T = a.T.copy(order=a_order) assert_array_equal(a_T.dot(a_T), a.T.dot(a.T)) When the dtype of `a` is float32, this test fails. Warren
(mismatch 26.0%) x: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058012, -3.95746613, 1.52435613, -0.59853059, -3.72278619, 3.82375932, 5.51367044], [-3.58154893, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,... y: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058001, -3.95746613, 1.52435613, -0.59853059, -3.72278643, 3.82375932, 5.51367044], [-3.58154917, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,...
---------------------------------------------------------------------- Ran 5151 tests in 60.506s
FAILED (KNOWNFAIL=5, SKIP=17, errors=2, failures=1)
I don't see any of these with
Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/charris/.local/lib/python2.7/site-packages/numpy Python version 2.7.3 (default, Aug 9 2012, 17:23:57) [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] nose version 1.3.0
I'll guess it's the ancient version of gcc.
Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

On Sat, Jun 1, 2013 at 8:56 PM, Warren Weckesser <warren.weckesser@gmail.com
wrote:
On Sat, Jun 1, 2013 at 7:47 PM, Charles R Harris < charlesr.harris@gmail.com> wrote:
On Sat, Jun 1, 2013 at 4:50 PM, Warren Weckesser < warren.weckesser@gmail.com> wrote:
I'm getting a failure and two errors with the latest master branch:
$ python -c "import numpy; numpy.test('full')" Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/warren/local_numpy/lib/python2.7/site-packages/numpy Python version 2.7.4 |Anaconda 1.5.0 (64-bit)| (default, Apr 21 2013, 17:43:08) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] nose version 1.3.0
.....................F...................................................................................................................................................................................................................................................................................................................S...............................................................................................................................S..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K........................................E.E.................................................................................................................................................SSS...............................................................................................................................................................................................................................................................................................................................................K........................................................................................................K......................K...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SS..SS.....................................................................................................SSSSSSSS................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.................................................... ====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== FAIL: Test numpy dot with different order C, F ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_blasdot.py", line 114, in test_dot_array_order assert_almost_equal(a.dot(a), a.T.dot(a.T).T, decimal=30) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 458, in assert_almost_equal return assert_array_almost_equal(actual, desired, decimal, err_msg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 819, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 652, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 30 decimals
Thirty decimals? What architecture?
`decimal=30` is used in three places in numpy/core/tests/test_blasdot.py, in the function `test_dot_array_order()`. It looks like the argument should be `decimal=prec`.
If I make that change, the above test passes, but I get a failure in a test for array equality in the same function (lines 119-120):
a_T = a.T.copy(order=a_order) assert_array_equal(a_T.dot(a_T), a.T.dot(a.T))
When the dtype of `a` is float32, this test fails.
If I replace all tests of the form: assert_array_equal(X, Y) with assert_almost_equal(X, Y, decimal=prec) all the tests in the function test_doc_array_order() pass. Warren
Warren
(mismatch 26.0%) x: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058012, -3.95746613, 1.52435613, -0.59853059, -3.72278619, 3.82375932, 5.51367044], [-3.58154893, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,... y: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058001, -3.95746613, 1.52435613, -0.59853059, -3.72278643, 3.82375932, 5.51367044], [-3.58154917, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,...
---------------------------------------------------------------------- Ran 5151 tests in 60.506s
FAILED (KNOWNFAIL=5, SKIP=17, errors=2, failures=1)
I don't see any of these with
Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/charris/.local/lib/python2.7/site-packages/numpy Python version 2.7.3 (default, Aug 9 2012, 17:23:57) [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] nose version 1.3.0
I'll guess it's the ancient version of gcc.
Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

On Sat, 2013-06-01 at 17:47 -0600, Charles R Harris wrote:
On Sat, Jun 1, 2013 at 4:50 PM, Warren Weckesser <warren.weckesser@gmail.com> wrote: I'm getting a failure and two errors with the latest master branch:
$ python -c "import numpy; numpy.test('full')" Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/warren/local_numpy/lib/python2.7/site-packages/numpy Python version 2.7.4 |Anaconda 1.5.0 (64-bit)| (default, Apr 21 2013, 17:43:08) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] nose version 1.3.0 .....................F...................................................................................................................................................................................................................................................................................................................S...............................................................................................................................S..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K........................................E.E.................................................................................................................................................SSS...............................................................................................................................................................................................................................................................................................................................................K........................................................................................................K......................K...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SS..SS.....................................................................................................SSSSSSSS................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.................................................... ====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan]) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/numeric.py", line 2008, in allclose return all(less_equal(abs(x-y), atol + rtol * abs(y))) RuntimeWarning: invalid value encountered in absolute
====================================================================== FAIL: Test numpy dot with different order C, F ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/warren/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/core/tests/test_blasdot.py", line 114, in test_dot_array_order assert_almost_equal(a.dot(a), a.T.dot(a.T).T, decimal=30) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 458, in assert_almost_equal return assert_array_almost_equal(actual, desired, decimal, err_msg) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 819, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/warren/local_numpy/lib/python2.7/site-packages/numpy/testing/utils.py", line 652, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 30 decimals
Thirty decimals? What architecture?
(mismatch 26.0%) x: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058012, -3.95746613, 1.52435613, -0.59853059, -3.72278619, 3.82375932, 5.51367044], [-3.58154893, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,... y: array([[ 0.60970873, 1.6909554 , -1.08851945, -1.82058001, -3.95746613, 1.52435613, -0.59853059, -3.72278643, 3.82375932, 5.51367044], [-3.58154917, -2.06231236, -0.0656727 , 1.4737345 , 2.6068747 ,...
---------------------------------------------------------------------- Ran 5151 tests in 60.506s
FAILED (KNOWNFAIL=5, SKIP=17, errors=2, failures=1)
I don't see any of these with
Running unit tests for numpy NumPy version 1.8.0.dev-dff8c94 NumPy is installed in /home/charris/.local/lib/python2.7/site-packages/numpy Python version 2.7.3 (default, Aug 9 2012, 17:23:57) [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] nose version 1.3.0
I'll guess it's the ancient version of gcc.
The second failure should depend on the lapack/blas version used for dot, so differences are to be expected I guess and the test simply needs to be (further) relaxed probably. Not sure about the first thing, I somewhat think we had similar failures when testing 1.7. but I don't remember. - Sebastian
Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (4)
-
Charles R Harris
-
Sebastian Berg
-
Tim Burgess
-
Warren Weckesser