[Numpy-discussion] can't use argmin for array of timedeltas
Thu Sep 15 19:52:48 CDT 2011
On Thu, Sep 15, 2011 at 2:49 PM, Benjamin Root <email@example.com> 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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion