3 Jul 11:15
argwhere does not accept py list
Sebastian Haase <seb.haase <at> gmail.com>
2009-07-03 09:15:10 GMT
2009-07-03 09:15:10 GMT
Hi, should this not be accepted: >>> N.argwhere([4,0,2,1,3]) ? instead I get Traceback (most recent call last): File "<input>", line 1, in <module> File "./numpy/core/numeric.py", line 510, in argwhere AttributeError: 'list' object has no attribute 'nonzero' >>> N.argwhere(N.array([4,0,2,1,3])) [[0] [2] [3] [4]] >>> N.__version__ '1.3.0' >>> Just a note. -Sebastian Haase
RSS Feed