On Thu, Sep 15, 2011 at 2:49 PM, Benjamin Root <[email protected]> wrote:
> I encountered something similar back in April or so and that it was fixed. > The problem was that the minimum function was implemented as max(0 - a), and > so this fails for timedelta objects that can't do this. This was fixed for > min(), but apparently not for argmin(). > > Ben Root > I did a quick fix of this issue and made it available as part of pull request #158: https://github.com/numpy/numpy/pull/158 I simply reused the argmax code, but flipped the arguments for the comparison operations. This did require modifying some header files, so I don't know how big of an issue that will be. Cheers, Ben Root
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
