in numarraycore.py line 1504 should be changed from return zeros(shape(m))-less(m,0)+greater(m,0) to return zeros(shape(m))-ufunc.less(m,0)+ufunc.greater(m,0) otherwise sign function raises an error: /usr/local/lib/python2.4/site-packages/numarray/numarraycore.py in sign(m) 1502 """ 1503 m = asarray(m) -> 1504 return zeros(shape(m))-less(m,0)+greater(m,0) 1505 1506 def alltrue(array, axis=0): NameError: global name 'less' is not defined Nadav.
Nadav Horesh wrote:
in numarraycore.py line 1504 should be changed from
return zeros(shape(m))-less(m,0)+greater(m,0)
What version of numarray are you running? I don't see this code in version 1.1.1. (I did a 'grep zeros(shape(m)) *.py' in /usr/lib/python2.3/site-packages/numarray and got no matches; line 1504 of my copy of numarraycore.py doesn't look anything like the above.
print numarray.__version__ 1.2a
It is from the CVS repositoty Nadav Stephen Walton wrote:
Nadav Horesh wrote:
in numarraycore.py line 1504 should be changed from
return zeros(shape(m))-less(m,0)+greater(m,0)
What version of numarray are you running? I don't see this code in version 1.1.1. (I did a 'grep zeros(shape(m)) *.py' in /usr/lib/python2.3/site-packages/numarray and got no matches; line 1504 of my copy of numarraycore.py doesn't look anything like the above.
On Thu, 2005-01-06 at 07:22, Nadav Horesh wrote:
print numarray.__version__ 1.2a
It is from the CVS repositoty
Nadav
Thanks Nadav. Fixed in CVS. Regards, Todd
Stephen Walton wrote:
Nadav Horesh wrote:
in numarraycore.py line 1504 should be changed from
return zeros(shape(m))-less(m,0)+greater(m,0)
What version of numarray are you running? I don't see this code in version 1.1.1. (I did a 'grep zeros(shape(m)) *.py' in /usr/lib/python2.3/site-packages/numarray and got no matches; line 1504 of my copy of numarraycore.py doesn't look anything like the above.
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
--
participants (3)
-
Nadav Horesh
-
Stephen Walton
-
Todd Miller