where is the error?

lajam at caramail.com lajam at caramail.com
Thu Jun 26 15:17:28 CEST 2008


I'm trying to assign data into an array with the nonzero function.
There is my code.

from numarray import *
diff_temp=(logical_and(values[:,5] > -2,values[:,5] < 2)).nonzero()

This command works fine but when I apply the following,


I have this error message:
IndexError: each subindex must be either a slice, an integer,
Ellipsis, or NewAxis

Does someone know what it is the problem? I'm using python2.4.3 on

Using this command with python on windows xp worked fine.

Thank you for the help,

More information about the Python-list mailing list