[SciPy-dev] More OSX fun

Robert Kern rkern at ucsd.edu
Fri Dec 26 16:38:24 CST 2003

I have managed to compile scipy on Mac OS X using unstable Fink's
Python, ATLAS, and FFTW.

I fixed the problem that prevented Chris Fonnesbeck from compiling, but
as there are no unittests, I'm not sure it totally works. The fix is a
bit of a hack, but it compiles. Turns out some of the enum names in
supermatrix.h are #defined constants in some header. My grep-fu hasn't
yet revealed where they are from, yet, but I can conditionally #undef

I also fixed a problem in fastumath by porting in some changes from
Numeric 23.1's umath's logical_* functions to address the same problem.
Unfortunately, porting in similar changes from the equal, less, greater,
etc. functions breaks things. I'll look into that some more when I can
steal some more time.

Below are the last two failures from the tests. They are errors in
numerical accuracy only.

FAIL: check_bei_zeros (scipy.special.basic.test_basic.test_bei_zeros)
Traceback (most recent call last):
  File "/sw/lib/python2.3/site-packages/scipy/special/tests/test_basic.py", line 580, in check_bei_zeros
  File "/sw/lib/python2.3/site-packages/scipy_test/testing.py", line 635, in assert_array_almost_equal
    assert cond,\
Arrays are not almost equal (mismatch 20.0%):
        Array 1: [-2.294439682614 -4.073155089072 -5.512395729664 -6.78129444599 
        Array 2: [-2.294439682614 -4.073155089072 -5.512395729664 -6.78129444599 

FAIL: check_nrdtrimn (scipy.special.basic.test_basic.test_cephes)
Traceback (most recent call last):
  File "/sw/lib/python2.3/site-packages/scipy/special/tests/test_basic.py", line 344, in check_nrdtrimn
  File "/sw/lib/python2.3/site-packages/scipy_test/testing.py", line 546, in assert_equal
    assert desired == actual, msg
Items are not equal:
ACTUAL: 0.99999999999999989

Ran 1028 tests in 9.264s

FAILED (failures=2)

Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter

More information about the Scipy-dev mailing list