[SciPy-user] select

Lionel Roubeyrie lroubeyrie at limair.asso.fr
Fri Mar 31 06:51:58 CST 2006


Hi all,
I have a little question about the select function, how can I select items 
between values:
#######################################
lionel[~]58>t
 Sortie[58]:
array([  0,  18,  36,  54,  72,  90, 108, 126, 144, 162, 180, 198, 216,
       234, 252, 270, 288, 306, 324, 342])

lionel[~]59>select( [t<90, t>300], [t,t] )

 Sortie[59]:
array([  0,  18,  36,  54,  72,   0,   0,   0,   0,   0,   0,   0,   0,
         0,   0,   0,   0, 306, 324, 342])

 Ok, it works, but:
lionel[~]60>select( [t>90, t<300], [t,t] )
 Sortie[60]:
array([  0,  18,  36,  54,  72,  90, 108, 126, 144, 162, 180, 198, 216,
       234, 252, 270, 288, 306, 324, 342])
gives all items.
How can I get out this problem?
Thanks

-- 
Lionel Roubeyrie - lroubeyrie at limair.asso.fr
LIMAIR
http://www.limair.asso.fr



More information about the SciPy-user mailing list