[Numpy-discussion] Classes as records within an numpy array

David Crisp david.crisp at gmail.com
Sun Apr 10 21:59:00 EDT 2011


On Mon, Apr 11, 2011 at 11:00 AM, Sturla Molden <sturla at molden.no> wrote:
> Den 11.04.2011 02:01, skrev David Crisp:
>> Can anybody guide me through this problem?
>>
>
> You must use dtype=object for the array vegetation_matrix.

Thank you.  This seemed to remove the error I was having.

> You also index vegetation_matrix wrong, use x[i,j] not x[i][j].

Is it a significant problem if I use the x[i][j] method and not the
x[i,j] method?  Or are we talking about trying to stick with a
convention?

Regards,
David



More information about the NumPy-Discussion mailing list