[SciPy-user] Release of SciPy Core 0.4 (Beta)

Rob Managan managan at llnl.gov
Tue Oct 4 15:22:24 CDT 2005


As of version 0.4.2 it appears to install on Mac OSX 10.3.9.

However, scipy.test() gives a bus error

Here is the end of scipy.test(verbosity=2)

   Found 4 tests for scipy.base.index_tricks
   Found 0 tests for __main__
check_basic (scipy.base.function_base.test_function_base.test_all) ... ok
check_nd (scipy.base.function_base.test_function_base.test_all) ... BUFFER...3
BUFFER...3
ok
check_basic (scipy.base.function_base.test_function_base.test_amax) ... ok
check_basic (scipy.base.function_base.test_function_base.test_amin) ... ok
check_basic (scipy.base.function_base.test_function_base.test_angle) ... ok
check_basic (scipy.base.function_base.test_function_base.test_any) ... ok
check_nd (scipy.base.function_base.test_function_base.test_any) ... BUFFER...3
BUFFER...3
ok
check_basic (scipy.base.function_base.test_function_base.test_cumprod) ... ok
check_basic (scipy.base.function_base.test_function_base.test_cumsum) ... ok
check_basic (scipy.base.function_base.test_function_base.test_diff) ... ok
check_nd (scipy.base.function_base.test_function_base.test_diff) ... 
NOBUFFER...200
NOBUFFER...200
NOBUFFER...200
NOBUFFER...200
NOBUFFER...200
ok
check_basic (scipy.base.function_base.test_function_base.test_extins) ... ok
check_both (scipy.base.function_base.test_function_base.test_extins) 
... Bus error


if I add some prints into sciy/base/tests/test_function_base.py: test_extins
     def check_both(self):
         print ' '
	a = rand(10)
	print 'a',a
         mask = a > 0.5
	print 'mask',mask
         ac = a.copy()
	print 'ac',ac
         c = extract(mask, a)
	print 'c',c
         insert(a,mask,0)
	print 'a',a
         insert(a,mask,c)
	print 'c',c
         assert_array_equal(a,ac)


I get
a [ 0.24629164  0.1397958   0.56355685  0.53457765  0.45035916  0.05456988
   0.18843402  0.057217    0.48848317  0.89830088]
mask [False False True True False False False False False True]
ac [ 0.24629164  0.1397958   0.56355685  0.53457765  0.45035916  0.05456988
   0.18843402  0.057217    0.48848317  0.89830088]
c [ 0.56355685  0.53457765  0.89830088]
Bus error
  which implies that the insert function fails.

Any ideas as to what would cause this??

Thanks!!
-- 
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan               email managan at llnl.gov
LLNL                      phone: 925-423-0903
P.O. Box 808, L-095       FAX:   925-422-3389
Livermore, CA  94551-0808



More information about the SciPy-user mailing list