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

Sturla Molden sturla at molden.no
Sun Apr 10 21:00:48 EDT 2011

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.

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


More information about the NumPy-Discussion mailing list