[Numpy-discussion] np.any and np.all short-circuiting

Citi, Luca lciti at essex.ac.uk
Thu Sep 24 18:29:16 EDT 2009


Thank you for your instantaneuos reply!

This is what I usually do:
from the numpy folder I run (emptying the build folder if I just fetched svn updates)
$ python setup build.py
$ cd build/lib-...
$ ipython
In [1]: import numpy as np
In [2]: np.__version__
Out[2]: '1.4.0.dev7417'

Everything works except for the np.test() which gives
"NameError: name 'numeric' is not defined"

Otherwise I move into a diffeent folder, say /tmp and run ipython
In [1]: import sys
In [2]: sys.path.insert(0, '~/numpy/build/lib.linux-i686-2.6/')
In [3]: import numpy as np
In [4]: np.__version__
Out[4]: '1.4.0.dev7417'
In [5]: np.test()
Running unit tests for numpy
NumPy version 1.4.0.dev7417
NumPy is installed in /_space_/Temp/numpy/build/lib.linux-i686-2.6/numpy
Python version 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3]
nose version 0.10.4
----------------------------------------------------------------------
Ran 0 tests in 0.002s
OK
Out[5]: <nose.result.TextTestResult run=0 errors=0 failures=0>


What should I do instead?

Thanks,
Luca



More information about the NumPy-Discussion mailing list