where is the error?

lajam at caramail.com lajam at caramail.com
Fri Jun 27 09:51:52 EDT 2008


>
> I think that you mean that diff_temp will be an array of the numberS
> (plural) of the lines (rows?) in values array that met the -2 < x < 2
> criterion. Now you want to be able to use diff_temp to get the
> corresponding subset of some other array. Am I getting close?


I think that you're getting close. I want to get the lines that met
the criterion. Diff_temp is an array containing the values of the
lines. So bascially,



> Now you want to be able to use diff_temp to get the corresponding
> subset of some other array. Am I getting close?

yes


> Perhaps you need something like other_array.take(diff_temp) ?


And my problem was that the commands worked on windows but not on
linux.


> By the way, shouldn't you be using numpy? I thought numarray was going
> away by mid-2008 i.e. now.

I know, but i'm not sure that it's the problem.

Thanks
Cedric



More information about the Python-list mailing list