[SciPy-user] Mode "reflect" may yield incorrect results on boundaries

Qing Peng qing@qpeng....
Mon Jul 21 03:43:30 CDT 2008


Hi there,

I carefully followed the instructions to install numpy-1.1.0 and
scipy-0.6.0, after lapack,atlas,amd,umfpack,fftw3 installation. The cite.cfg
is the following.
[DEFAULT]
library_dirs =
/home/users3/cmt/qing/usr/local/lib:/home/users3/cmt/qing/usr/local/gcc-4.3.1/lib64
include_dirs =
/home/users3/cmt/qing/usr/local/include:/home/users3/cmt/qing/usr/local/gcc-4.3.1/include


[atlas]
library_dirs = /home/users3/cmt/qing/usr/local/lib
atlas_libs = lapack, f77blas, cblas, atlas

[amd]
library_dirs =
/home/users3/cmt/qing/usr/local/lib:/home/users3/cmt/qing/usr/local/gcc-4.3.1/lib64
include_dirs =
/home/users3/cmt/qing/usr/local/include:/home/users3/cmt/qing/usr/local/gcc-4.3.1/include
amd_libs = amd

[umfpack]
library_dirs =
/home/users3/cmt/qing/usr/local/lib:/home/users3/cmt/qing/usr/local/gcc-4.3.1/lib64
include_dirs =
/home/users3/cmt/qing/usr/local/include:/home/users3/cmt/qing/usr/local/gcc-4.3.1/include
umfpack_libs = umfpack, gfortran

[fftw3]
library_dirs = /home/users3/cmt/qing/usr/local/fftw-3.1.2/lib
include_dirs = /home/users3/cmt/qing/usr/local/fftw-3.1.2/include
fftw3_libs = fftw3

"python setup.py install"  successfully install numpy and scipy.
But when I run the test: it gives:
-bash-2.05b$   python -c 'import numpy; import scipy; scipy.test(1)'
Failed importing scipy.linsolve.umfpack: 'module' object has no attribute
'umfpack'
  Found 9/9 tests for scipy.cluster.tests.test_vq
  Found 18/18 tests for scipy.fftpack.tests.test_basic
  Found 4/4 tests for scipy.fftpack.tests.test_helper
  Found 20/20 tests for scipy.fftpack.tests.test_pseudo_diffs
  Found 1/1 tests for scipy.integrate.tests.test_integrate
  Found 3/3 tests for scipy.integrate.tests.test_quadrature
  Found 10/10 tests for scipy.integrate.tests.test_quadpack
  Found 6/6 tests for scipy.tests.test_fitpack
  Found 6/6 tests for scipy.tests.test_interpolate
  Found 28/28 tests for scipy.io.tests.test_mio
  Found 5/5 tests for scipy.io.tests.test_npfile
  Found 4/4 tests for scipy.io.tests.test_array_import
  Found 4/4 tests for scipy.io.tests.test_recaster
  Found 13/13 tests for scipy.io.tests.test_mmio
  Found 128/128 tests for scipy.lib.blas.tests.test_fblas
  Found 16/16 tests for scipy.lib.blas.tests.test_blas
  Found 42/42 tests for scipy.lib.lapack.tests.test_lapack
  Found 128/128 tests for scipy.linalg.tests.test_fblas
  Found 6/6 tests for scipy.linalg.tests.test_iterative
  Found 72/72 tests for scipy.linalg.tests.test_decomp
  Found 4/4 tests for scipy.linalg.tests.test_lapack
  Found 41/41 tests for scipy.linalg.tests.test_basic
  Found 7/7 tests for scipy.linalg.tests.test_matfuncs
<module 'scipy.linalg.fblas' from
'/home/users3/cmt/qing/usr/local/python/lib/python2.5/site-packages/scipy/linalg/fblas.so'>
  Found 16/16 tests for scipy.linalg.tests.test_blas
Failed importing
/home/users3/cmt/qing/usr/local/python/lib/python2.5/site-packages/scipy/linsolve/umfpack/tests/test_umfpack.py:
'module' object has no attribute 'umfpack'
  Found 2/2 tests for scipy.maxentropy.tests.test_maxentropy
Failed importing
/home/users3/cmt/qing/usr/local/python/lib/python2.5/site-packages/scipy/misc/tests/test_pilutil.py:
No module named PIL.Image
  Found 399/399 tests for scipy.ndimage.tests.test_ndimage
  Found 5/5 tests for scipy.odr.tests.test_odr
  Found 8/8 tests for scipy.optimize.tests.test_optimize
  Found 4/4 tests for scipy.optimize.tests.test_zeros
  Found 1/1 tests for scipy.optimize.tests.test_cobyla
  Found 10/10 tests for scipy.optimize.tests.test_nonlin
  Found 5/5 tests for scipy.signal.tests.test_signaltools
  Found 4/4 tests for scipy.signal.tests.test_wavelets
  Found 152/152 tests for scipy.sparse.tests.test_sparse
  Found 3/3 tests for scipy.special.tests.test_spfun_stats
  Found 342/342 tests for scipy.special.tests.test_basic
  Found 107/107 tests for scipy.stats.tests.test_stats
  Found 10/10 tests for scipy.stats.tests.test_morestats
  Found 73/73 tests for scipy.stats.tests.test_distributions
  Found 9/9 tests for scipy.weave.tests.test_build_tools
  Found 0/0 tests for scipy.weave.tests.test_scxx_dict
Failed importing
/home/users3/cmt/qing/usr/local/python/lib/python2.5/site-packages/scipy/weave/tests/test_wx_spec.py:
Could not locate wxPython base directory.
  Found 3/3 tests for scipy.weave.tests.test_standard_array_spec
  Found 0/0 tests for scipy.weave.tests.test_inline_tools
  Found 0/0 tests for scipy.weave.tests.test_c_spec
  Found 1/1 tests for scipy.weave.tests.test_ast_tools
  Found 0/0 tests for scipy.weave.tests.test_scxx_sequence
  Found 16/16 tests for scipy.weave.tests.test_slice_handler
  Found 0/0 tests for scipy.weave.tests.test_scxx_object
  Found 2/2 tests for scipy.weave.tests.test_blitz_tools
building extensions here: /home/users3/cmt/qing/.python25_compiled/m5
  Found 1/1 tests for scipy.weave.tests.test_ext_tools
  Found 26/26 tests for scipy.weave.tests.test_catalog
  Found 74/74 tests for scipy.weave.tests.test_size_check
.../home/users3/cmt/qing/usr/local/python/lib/python2.5/site-packages/scipy/cluster/vq.py:477:
UserWarning: One of the clusters is empty. Re-run kmean with a different
initialization.
  warnings.warn("One of the clusters is empty. "
exception raised as expected: One of the clusters is empty. Re-run kmean
with a different initialization.
................................................Residual: 1.05006987327e-07
............../home/users3/cmt/qing/usr/local/python/lib/python2.5/site-packages/scipy/interpolate/fitpack2.py:458:
UserWarning:
The coefficients of the spline returned have been computed as the
minimal norm least-squares solution of a (numerically) rank deficient
system (deficiency=7). If deficiency is large, the results may be
inaccurate. Deficiency may strongly depend on the value of eps.
  warnings.warn(message)
.............................................
Don't worry about a warning regarding the number of bytes read.
Warning: 1000000 bytes requested, 20 bytes read.
........................caxpy:n=4
..caxpy:n=3
....ccopy:n=4
..ccopy:n=3
.............cscal:n=4
....cswap:n=4
..cswap:n=3
.....daxpy:n=4
..daxpy:n=3
....dcopy:n=4
..dcopy:n=3
.............dscal:n=4
....dswap:n=4
..dswap:n=3
.....saxpy:n=4
..saxpy:n=3
....scopy:n=4
..scopy:n=3
.............sscal:n=4
....sswap:n=4
..sswap:n=3
.....zaxpy:n=4
..zaxpy:n=3
....zcopy:n=4
..zcopy:n=3
.............zscal:n=4
....zswap:n=4
..zswap:n=3
............................................FF.................caxpy:n=4
..caxpy:n=3
....ccopy:n=4
..ccopy:n=3
.............cscal:n=4
....cswap:n=4
..cswap:n=3
.....daxpy:n=4
..daxpy:n=3
....dcopy:n=4
..dcopy:n=3
.............dscal:n=4
....dswap:n=4
..dswap:n=3
.....saxpy:n=4
..saxpy:n=3
....scopy:n=4
..scopy:n=3
.............sscal:n=4
....sswap:n=4
..sswap:n=3
.....zaxpy:n=4
..zaxpy:n=3
....zcopy:n=4
..zcopy:n=3
.............zscal:n=4
....zswap:n=4
..zswap:n=3
..............................................................................................................................Result
may be inaccurate, approximate err = 2.53191024037e-09
...Result may be inaccurate, approximate err = 3.85396349383e-12
............................................................................................................................/home/users3/cmt/qing/usr/local/python/lib/python2.5/site-packages/scipy/ndimage/interpolation.py:41:
UserWarning: Mode "reflect" may yield incorrect results on boundaries.
Please use "mirror" instead.
  warnings.warn('Mode "reflect" may yield incorrect results on '
.............................................................................................Illegal
instruction

After google with the key words: 'Mode "reflect" may yield incorrect results
on boundaries', it looks like a bug, which said been fixed in year 2007. I
just wondering where I go wrong.

Thanks

-- Qing
=============
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20080721/84eb62a9/attachment.html 


More information about the SciPy-user mailing list