On Wed, Jul 8, 2009 at 19:11, John [H2O]<[email protected]> wrote: > > Also, could someone please explain why: > > Tsub = T[ (T[:,0]>t1) & (T[:,0]<t2) ] > > Works, but: > > Tsub = T[ (t1<T[:,0]) & (T[:,0]<t2) ] > > Does not???
I'm not positive, but I think it boils down to this: Python tries to look up the method from the first operand before the second operand. TimeSeries know about datetime objects, but datetime objects don't know about TimeSeries. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
