[SciPy-user] scipy.sign

p.berkes at biologie.hu-berlin.de p.berkes at biologie.hu-berlin.de
Wed Sep 22 09:35:58 CDT 2004


Using the last CVS scipy_base module, I get a problem with scipy.sign 
after a call to scipy.alter_numeric:

 Python 2.3.4 (#1, Jul 30 2004, 12:17:30)
 [GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2
 Type "help", "copyright", "credits" or "license" for more
 information.
 >>> import scipy
 >>> scipy.__version__
 '0.3.0_266.4239'
 >>> scipy.scipy_base_version.scipy_base_version
 '0.3.1_20.301'
 >>> scipy.sign(-1)
 -1
 >>> scipy.alter_numeric()
 >>> scipy.sign(-1)
 255

which is the wrong answer. Is anybody able to reproduce this bug?

Pietro.








More information about the SciPy-user mailing list