
On Tue, Apr 5, 2011 at 12:10 AM, Christoph Gohlke <cgohlke@uci.edu> wrote:
On 4/4/2011 1:04 PM, Ralf Gommers wrote:
Hi,
I am pleased to announce the availability of the second 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.
Many bug fixes went in since beta 1, among which: - fix installation of source release with python 3 - f2py fixes for assumed shape arrays - several loadtxt bug fixes and enhancements - change default floating point error handling from "print" to "warn" - much more
I quickly counted in the timeline, and in the last few weeks the number of open tickets has been decreased by over 100. Thanks to everyone who contributed to this spring cleaning!
Sources and binaries can be found at http://sourceforge.net/projects/numpy/files/NumPy/1.6.0b2/ For (preliminary) release notes see below.
Enjoy, Ralf
Thank you.
numpy 1.6.0b2 builds well on Windows with msvc9/MKL.
No license file is included in the installers.
The installers for Python 3 include 2to3 backup files. This has already been fixed in scipy <https://github.com/scipy/scipy/commit/f7dae4f21593d94735a0377a1af3a9275413b8...>.
All numpy tests pass on win32.
A few numpy tests fail on win-amd64:
====================================================================== ERROR: Ticket #99 ---------------------------------------------------------------------- Traceback (most recent call last): File "X:\Python26-x64\lib\site-packages\numpy\testing\decorators.py", line 215, in knownfailer return f(*args, **kwargs) File "X:\Python26-x64\lib\site-packages\numpy\core\tests\test_regression.py", line 148, in test_intp np.intp('0x' + 'f'*i_width,16) TypeError: function takes at most 1 argument (2 given)
====================================================================== FAIL: test_iterator.test_iter_broadcasting_errors ---------------------------------------------------------------------- Traceback (most recent call last): File "X:\Python26-x64\lib\site-packages\nose\case.py", line 187, in runTest self.test(*self.arg) File "X:\Python26-x64\lib\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 "X:\Python26-x64\lib\site-packages\numpy\testing\utils.py", line 34, in assert_ raise AssertionError(msg) AssertionError: Message "non-broadcastable output operand with shape (%lld,%lld) doesn't match the broadcast shape (%lld,%lld,%lld)" doesn't contain operand shape (2,3)
====================================================================== FAIL: test_noncentral_f (test_random.TestRandomDist) ---------------------------------------------------------------------- Traceback (most recent call last): File "X:\Python26-x64\lib\site-packages\numpy\random\tests\test_random.py", line 297, in test_noncentral_f np.testing.assert_array_almost_equal(actual, desired, decimal=14) File "X:\Python26-x64\lib\site-packages\numpy\testing\utils.py", line 800, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "X:\Python26-x64\lib\site-packages\numpy\testing\utils.py", line 636, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 14 decimals
(mismatch 100.0%) x: array([[ 1.62003345, 1.7253997 ], [ 0.96735921, 0.42933718], [ 0.71714872, 6.24979552]]) y: array([[ 1.405981 , 0.34207973], [ 3.57715069, 7.92632663], [ 0.43741599, 1.17742088]])
One scipy 0.9.0 test fails (32 and 64 bit):
====================================================================== FAIL: test_expon (test_morestats.TestAnderson) ---------------------------------------------------------------------- Traceback (most recent call last): File "X:\Python26-x64\lib\site-packages\scipy\stats\tests\test_morestats.py", line 72, in test_expon assert_array_less(crit[:-1], A) File "X:\Python26-x64\lib\site-packages\numpy\testing\utils.py", line 869, in assert_array_less header='Arrays are not less-ordered') File "X:\Python26-x64\lib\site-packages\numpy\testing\utils.py", line 613, in assert_array_compare chk_same_position(x_id, y_id, hasval='inf') File "X:\Python26-x64\lib\site-packages\numpy\testing\utils.py", line 588, in chk_same_position raise AssertionError(msg) AssertionError: Arrays are not less-ordered
x and y inf location mismatch: x: array([ 0.911, 1.065, 1.325, 1.587]) y: array(inf)
I think this is from the change how inf are now handled in the asserts, but I cannot check because I don't have numpy 1.6 yet
np.testing.assert_array_less(2,3) np.testing.assert_array_less(2,np.inf) np.testing.assert_array_less(np.inf,np.inf)
the anderson test really states: assert array([ 0.911, 1.065, 1.325, 1.587]) < np.inf which is correct but not a good test. Josef
Christoph _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion