Hello,

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,

values_matchup=values_Stumpf[diff_temp_Stumpf,:]

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
Ubuntu.

Using this command with python on windows xp worked fine.

Thank you for the help,
Cedric
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to