[Numpy-discussion] type 'numpy.int64' unhashable

Sebastian Haase seb.haase@gmail....
Fri Oct 30 06:04:36 CDT 2009


Hi,
I get this error:
set(chainsA[0,:,0])
TypeError: unhashable type: 'numpy.ndarray'
>>> list(chainsA[0,:,0])
[2636, 2590, 2619, 2590]
>>> list(chainsA[0,:,0])[0]
2636
>>> type(_)
<type 'numpy.int64'>

I understand where this error comes from, however what I was trying to
do seems to "intuitive" that I would like to ask for suggestions:
"What should I do if the "number" 2636 becomes unhashable ?"

Thanks,

Sebastian Haase


More information about the NumPy-Discussion mailing list