On Sun, Nov 22, 2009 at 1:40 PM, Charles R Harris <charlesr.har...@gmail.com> wrote: > > > On Sun, Nov 22, 2009 at 6:28 AM, <josef.p...@gmail.com> wrote: >> >> On Sun, Nov 22, 2009 at 2:35 AM, David Cournapeau <courn...@gmail.com> >> wrote: >> > On Wed, Nov 18, 2009 at 6:10 PM, David Cournapeau <courn...@gmail.com> >> > wrote: >> >> On Wed, Nov 18, 2009 at 12:38 AM, <josef.p...@gmail.com> wrote: >> >> >> >>> >> >>> Now numpy builds without problems. >> >>> When I run the tests I get 16 failures mostly nan related. I have no >> >>> idea >> >>> whether they are real or if there is still something screwed up in my >> >>> setup. See below. >> >> >> >> I can reproduce those. I did not see those because they are python 2.5 >> >> specific (which is puzzling). >> > >> > I fix most of those, which were related to an atan2 bug in MS C >> > library. Could you test whether this fixes it for you ? >> > >> > David >> > _______________________________________________ >> > NumPy-Discussion mailing list >> > NumPy-Discussion@scipy.org >> > http://mail.scipy.org/mailman/listinfo/numpy-discussion >> > >> >> Thanks, >> >> I have 4 failures remaining. full ouput below >> >> Josef >> >> >python >> Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit >> (Intel)] on >> win32 >> Type "help", "copyright", "credits" or "license" for more information. >> >>> import numpy >> >>> numpy.test() >> Running unit tests for numpy >> NumPy version 1.4.0.dev7758 >> NumPy is installed in >> C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.de >> v7758.win32\Programs\Python25\Lib\site-packages\numpy >> Python version 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 >> bit (Int >> el)] >> nose version 0.11.1 >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> .......................K.....................................................FF. >> >> ............................K......................K.F.......................... >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> .....................................C:\Josef\_progs\Subversion\numpy-trunk\dist >> >> \numpy-1.4.0.dev7758.win32\Programs\Python25\Lib\site-packages\numpy\lib\io.py:1 >> 324: ConversionWarning: Some errors were detected ! >> Line #2 (got 4 columns instead of 5) >> Line #12 (got 4 columns instead of 5) >> Line #22 (got 4 columns instead of 5) >> Line #32 (got 4 columns instead of 5) >> Line #42 (got 4 columns instead of 5) >> warnings.warn(errmsg, ConversionWarning) >> >> .C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Programs\ >> Python25\Lib\site-packages\numpy\lib\io.py:1324: ConversionWarning: Some >> errors >> were detected ! >> Line #2 (got 4 columns instead of 2) >> Line #12 (got 4 columns instead of 2) >> Line #22 (got 4 columns instead of 2) >> Line #32 (got 4 columns instead of 2) >> Line #42 (got 4 columns instead of 2) >> warnings.warn(errmsg, ConversionWarning) >> >> ..........................................K........K............F............... >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ......S......................................................................... >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> >> ................................................................................ >> ................................................... >> ====================================================================== >> FAIL: test_umath.test_nextafter >> ---------------------------------------------------------------------- >> Traceback (most recent call last): >> File >> "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\case.p >> y", line 183, in runTest >> self.test(*self.arg) >> File >> "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Pr >> ograms\Python25\Lib\site-packages\numpy\core\tests\test_umath.py", line >> 851, in >> test_nextafter >> assert np.nextafter(one, two) - one == eps >> AssertionError >> >> ====================================================================== >> FAIL: test_umath.test_spacing >> ---------------------------------------------------------------------- >> Traceback (most recent call last): >> File >> "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\case.p >> y", line 183, in runTest >> self.test(*self.arg) >> File >> "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Pr >> ograms\Python25\Lib\site-packages\numpy\core\tests\test_umath.py", line >> 863, in >> test_spacing >> assert np.spacing(one) == eps >> AssertionError >> >> ====================================================================== >> FAIL: test_special_values (test_umath_complex.TestClog) >> ---------------------------------------------------------------------- >> Traceback (most recent call last): >> File >> "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Pr >> ograms\Python25\Lib\site-packages\numpy\core\tests\test_umath_complex.py", >> line >> 179, in test_special_values >> assert_almost_equal(np.log(x), y) >> File "\Programs\Python25\Lib\site-packages\numpy\testing\utils.py", line >> 436, >> in assert_almost_equal >> AssertionError: Items are not equal: >> ACTUAL: [ NaN+2.35619449j] >> DESIRED: (1.#INF+2.35619449019j) >> >> >> ====================================================================== >> FAIL: test_doctests (test_polynomial.TestDocs) >> ---------------------------------------------------------------------- >> Traceback (most recent call last): >> File >> "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Pr >> ograms\Python25\Lib\site-packages\numpy\lib\tests\test_polynomial.py", >> line 90, >> in test_doctests >> return rundocs() >> File "\Programs\Python25\Lib\site-packages\numpy\testing\utils.py", line >> 952, >> in rundocs >> AssertionError: Some doctests failed: >> ********************************************************************** >> File >> "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Prog >> rams\Python25\Lib\site-packages\numpy\lib\tests\test_polynomial.py", line >> 20, in >> test_polynomial >> Failed example: >> print poly1d([100e-90, 1.234567e-9j+3, -1234.999e8]) >> Expected: >> 2 >> 1e-88 x + (3 + 1.235e-09j) x - 1.235e+11 >> Got: >> 2 >> 1e-088 x + (3 + 1.235e-009j) x - 1.235e+011 >> >> > > I can maybe fix this, although I'm not sure it's worth the effort and I > don't have a way to test it. There is another bug in the poly1d package that > needs fixing. David, what is the preferred way to do that now? > > > Also, there are fixes for the MS atan2 problems in the WTF_MatExtras file. > I think I sent you a copy once upon a time. > > Chuck > > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion > >
update, with revision 7769: Ran 2335 tests in 13.250s FAILED (KNOWNFAIL=7, SKIP=1, failures=2) ====================================================================== FAIL: test_special_values (test_umath_complex.TestClog) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7769.win32\Pr ograms\Python25\Lib\site-packages\numpy\core\tests\test_umath_complex.py", line 179, in test_special_values assert_almost_equal(np.log(x), y) File "\Programs\Python25\Lib\site-packages\numpy\testing\utils.py", line 437, in assert_almost_equal AssertionError: Items are not equal: ACTUAL: [ NaN+2.35619449j] DESIRED: (1.#INF+2.35619449019j) some examples based on test_umath_complex.TestClog show differences between complex128 and complex64 Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy as np >>> np.version.version '1.4.0.dev7769' >>> x = np.array([complex(-np.inf, np.inf),complex(np.inf, >>> -np.inf),complex(-0,np.inf),complex(-1e300, np.inf)], dtype=np.complex) >>> np.log(x) array([ NaN+2.35619449j, NaN-0.78539816j, Inf Infj, Inf+1.57079633j]) >>> x64 = np.array([complex(-np.inf, np.inf),complex(np.inf, >>> -np.inf),complex(-0, np.inf),complex(-1e300, np.inf)], dtype=np.complex64) >>> np.log(x64) array([ Inf+2.3561945j , Inf-0.78539819j, Inf+1.57079637j, Inf+2.3561945j ], dtype=complex64) I also ran the test of some old scipy against the trunk numpy: scipy.0.7.0('4826') finishes tests with some display errors scipy0.7.1rc3 test suite crashes both scipy versions build by David, according to __config__.py (scipy build against trunk a week ago has no problems) Josef _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion