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

2009-10-30 Thread Sebastian Haase
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

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

2009-10-30 Thread David Cournapeau
On Fri, Oct 30, 2009 at 8:04 PM, Sebastian Haase seb.ha...@gmail.com wrote: 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 ? In your example, that's

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

2009-10-30 Thread Gael Varoquaux
On Fri, Oct 30, 2009 at 08:21:16PM +0900, David Cournapeau wrote: On Fri, Oct 30, 2009 at 8:04 PM, Sebastian Haase seb.ha...@gmail.com wrote: 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

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

2009-10-30 Thread James Bergstra
On Fri, Oct 30, 2009 at 7:23 AM, Gael Varoquaux gael.varoqu...@normalesup.org wrote: On Fri, Oct 30, 2009 at 08:21:16PM +0900, David Cournapeau wrote: On Fri, Oct 30, 2009 at 8:04 PM, Sebastian Haase seb.ha...@gmail.com wrote: I understand where this error comes from, however what I was

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

2009-10-30 Thread Robert Kern
On Fri, Oct 30, 2009 at 08:11, James Bergstra bergs...@iro.umontreal.ca wrote: On Fri, Oct 30, 2009 at 7:23 AM, Gael Varoquaux gael.varoqu...@normalesup.org wrote: On Fri, Oct 30, 2009 at 08:21:16PM +0900, David Cournapeau wrote: On Fri, Oct 30, 2009 at 8:04 PM, Sebastian Haase

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

2009-10-30 Thread Sebastian Haase
On Fri, Oct 30, 2009 at 5:44 PM, Robert Kern robert.k...@gmail.com wrote: On Fri, Oct 30, 2009 at 08:11, James Bergstra bergs...@iro.umontreal.ca wrote: On Fri, Oct 30, 2009 at 7:23 AM, Gael Varoquaux gael.varoqu...@normalesup.org wrote: On Fri, Oct 30, 2009 at 08:21:16PM +0900, David