[SciPy-Dev] `trim1` and 'trimboth' backwards incompatible change

Abraham Escalante aeklant at gmail.com
Fri Jun 12 22:11:57 EDT 2015


Yes. I have made the change to partially sort (and just keep full sorting
for numpy < 1.8.0). If anyone has other observations, please feel free to
mention them.

Here is the PR again: 4910 <https://github.com/scipy/scipy/pull/4910>

Cheers,
Abraham.

2015-06-11 6:31 GMT-05:00 Sturla Molden <sturla.molden at gmail.com>:

> Abraham Escalante <aeklant at gmail.com> wrote:
> > Hello all,
> >
> > `trim1` and `trimboth` currently trim items from one or both tails
> > (respectively) of an array_like input but they do so without sorting the
> > items. It has been discussed that a function such as that does not make
> > much sense so that behaviour is being changed. Now the items will be
> sorted
> > prior to trimming.
>
>
> Wouldn't it be sufficient to do partial sorting (cf. numpy.partition)?
>
> Sturla
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20150612/2953aed0/attachment.html>


More information about the SciPy-Dev mailing list