Charles R Harris <charlesr.harris <at> gmail.com> writes: > You can use floats for the indices in the take method, they are floored before use.
Chuck, that's in 1.7 ? In 1.6.2 x = np.arange(10) x.take([3.14]) array([3]) x.take(np.array([3.14])) TypeError: array cannot be safely cast to required type cheers -- denis _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion