Re: [Numpy-discussion] Augment unique method

2020-07-16 Thread Stephan Hoyer
tephan Hoyer > *Sent:* Thursday, July 16, 2020 3:06 PM > *To:* Discussion of Numerical Python > *Subject:* Re: [Numpy-discussion] Augment unique method > > > > On Thu, Jul 16, 2020 at 11:41 AM Roman Yurchak > wrote: > > One issue with adding a tolerance to np.unique f

Re: [Numpy-discussion] Augment unique method

2020-07-16 Thread aminthefresh
: NumPy-Discussion On Behalf Of Stephan Hoyer Sent: Thursday, July 16, 2020 3:06 PM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Augment unique method On Thu, Jul 16, 2020 at 11:41 AM Roman Yurchak mailto:rth.yurc...@gmail.com> > wrote: One issue with ad

Re: [Numpy-discussion] Augment unique method

2020-07-16 Thread Stephan Hoyer
On Thu, Jul 16, 2020 at 11:41 AM Roman Yurchak wrote: > One issue with adding a tolerance to np.unique for floats is say you have > [0, 0.1, 0.2, 0.3, 0.4, 0.5] with atol=0.15 > > Should this return a single element or multiple ones? One once side each > consecutive float is closer than the tol

Re: [Numpy-discussion] Augment unique method

2020-07-16 Thread Roman Yurchak
One issue with adding a tolerance to np.unique for floats is say you have [0, 0.1, 0.2, 0.3, 0.4, 0.5] with atol=0.15 Should this return a single element or multiple ones? One once side each consecutive float is closer than the tolerance to the next one but the first one and the last one are c