[Numpy-discussion] Float and locale formatting fixes merged in trunk

josef.pktd@gmai... josef.pktd@gmai...
Sat Feb 14 10:09:01 CST 2009


On Sat, Feb 14, 2009 at 11:04 AM, Pauli Virtanen <pav@iki.fi> wrote:
> Sun, 15 Feb 2009 00:57:12 +0900, David Cournapeau wrote:
>
>> On Sun, Feb 15, 2009 at 12:41 AM, Pauli Virtanen <pav@iki.fi> wrote:
>>> Hi,
>>>
>>> Sat, 14 Feb 2009 23:38:11 +0900, David Cournapeau wrote:
>>>>     I've just merged the branch Pauli and me have been working on
>>>> recently to fix several local and float formatting bugs. All tests
>>>> pass on Linux, but there may still be rough edges on Windows. Let me
>>>> know if this causes trouble,
>>>
>>> Excellent.
>>>
>>> I note that we can't test this now on Windows, since the trunk does not
>>> build (because of the atanhf umath build error).
>>
>> which build problem ? I have built recent numpy fine
>
> This one:
>
> http://buildbot.scipy.org/builders/Windows_XP_x86_64_MSVC/builds/875/steps/shell/logs/stdio
>
> --
> Pauli Virtanen
>

I just build current trunk: win32, windowsXP, build with MinGW
no build problems,

Ran 1781 tests in 12.016s

FAILED (KNOWNFAIL=1, SKIP=1, errors=2, failures=3)
<nose.result.TextTestResult run=1781 errors=2 failures=3>

Josef
-------------------------------------------------------------


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.__file__
'C:\\Programs\\Python25\\lib\\site-packages\\numpy\\__init__.pyc'
>>> numpy.version.version
'1.3.0.dev6362'
>>> numpy.test()
Running unit tests for numpy
NumPy version 1.3.0.dev6362
NumPy is installed in C:\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.10.4
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
...............................................................................K
................................................................................
...................Ignoring "Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py." (one s
hould fix me in fcompiler/compaq.py)
................................................................................
................................................................................
................................................................................
................................................................................
...............................................................E..F.....E.......
..................FF............................................................
................................................................................
................................................................................
................................................................................
................................................................................
.S..............................................................................
................................................................................
................................................................................
................................................................................
................................................................................
..
======================================================================
ERROR: test_mmap (test_io.TestSaveLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Programs\Python25\lib\site-packages\numpy\lib\tests\test_io.py", line
 81, in test_mmap
    self.roundtrip(a, file_on_disk=True, load_kwds={'mmap_mode': 'r'})
  File "C:\Programs\Python25\lib\site-packages\numpy\lib\tests\test_io.py", line
 89, in roundtrip
    RoundtripTest.roundtrip(self, np.save, *args, **kwargs)
  File "C:\Programs\Python25\lib\site-packages\numpy\lib\tests\test_io.py", line
 57, in roundtrip
    arr_reloaded = np.load(load_file, **load_kwds)
  File "\Programs\Python25\Lib\site-packages\numpy\lib\io.py", line 142, in load

    fid = _file(file,"rb")
IOError: [Errno 2] No such file or directory: 'c:\\docume~1\\carrasco\\locals~1\
\temp\\tmpts5iyy'

======================================================================
ERROR: test_mmap (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Programs\Python25\lib\site-packages\numpy\lib\tests\test_io.py", line
 81, in test_mmap
    self.roundtrip(a, file_on_disk=True, load_kwds={'mmap_mode': 'r'})
  File "C:\Programs\Python25\lib\site-packages\numpy\lib\tests\test_io.py", line
 94, in roundtrip
    RoundtripTest.roundtrip(self, np.savez, *args, **kwargs)
  File "C:\Programs\Python25\lib\site-packages\numpy\lib\tests\test_io.py", line
 57, in roundtrip
    arr_reloaded = np.load(load_file, **load_kwds)
  File "\Programs\Python25\Lib\site-packages\numpy\lib\io.py", line 142, in load

    fid = _file(file,"rb")
IOError: [Errno 2] No such file or directory: 'c:\\docume~1\\carrasco\\locals~1\
\temp\\tmphmdwar'

======================================================================
FAIL: test_array (test_io.TestSaveTxt)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Programs\Python25\lib\site-packages\numpy\lib\tests\test_io.py", line
 122, in test_array
    '3.000000000000000000e+00 4.000000000000000000e+00\n'])
AssertionError

======================================================================
FAIL: Test find_duplicates
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Programs\Python25\lib\site-packages\numpy\lib\tests\test_recfunctions
.py", line 150, in test_find_duplicates
    assert_equal(test[-1], control)
  File "numpy\ma\testutils.py", line 121, in assert_equal
  File "numpy\ma\testutils.py", line 193, in assert_array_equal
  File "numpy\ma\testutils.py", line 186, in assert_array_compare
  File "\Programs\Python25\Lib\site-packages\numpy\testing\utils.py", line 295,
in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Arrays are not equal

(mismatch 100.0%)
 x: array([2, 0])
 y: array([0, 2])

======================================================================
FAIL: Test the ignoremask option of find_duplicates
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Programs\Python25\lib\site-packages\numpy\lib\tests\test_recfunctions
.py", line 181, in test_find_duplicates_ignoremask
    assert_equal(test[-1], control)
  File "numpy\ma\testutils.py", line 121, in assert_equal
  File "numpy\ma\testutils.py", line 193, in assert_array_equal
  File "numpy\ma\testutils.py", line 186, in assert_array_compare
  File "\Programs\Python25\Lib\site-packages\numpy\testing\utils.py", line 295,
in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Arrays are not equal

(mismatch 50.0%)
 x: array([1, 0, 3, 4])
 y: array([0, 1, 3, 4])

----------------------------------------------------------------------
Ran 1781 tests in 12.016s

FAILED (KNOWNFAIL=1, SKIP=1, errors=2, failures=3)
<nose.result.TextTestResult run=1781 errors=2 failures=3>
>>>


More information about the Numpy-discussion mailing list