Sebastian Haase | 3 Jul 11:15
Picon
Gravatar

argwhere does not accept py list

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

Gmane