--
> From: Jaime Fernández del Río
> Sent: 22-8-2014 16:22
>
> To: Discussion of Numerical Python
> Subject: Re: [Numpy-discussion] np.unique with structured arrays
>
> I can confirm, the issue seems to be in sorting:
>
> >>> np.
Oh yeah this could be. Floating point equality and bitwise equality are not the
same thing.
-Original Message-
From: "Jaime Fernández del Río"
Sent: 22-8-2014 16:22
To: "Discussion of Numerical Python"
Subject: Re: [Numpy-discussion] np.unique with structured a
umerical Python"
Subject: [Numpy-discussion] np.unique with structured arrays
Hello,
I've found a strange behavior or I'm missing something obvious (or np.unique is
not supposed to work with structured arrays).
I'm trying to extract unique values from a simple stru
I can confirm, the issue seems to be in sorting:
>>> np.sort(V_)
array([([0.5, 0.0, 1.0],), ([0.5, 0.0, -1.0],), ([0.5, -0.0, 1.0],),
([0.5, -0.0, -1.0],)],
dtype=[('v', ' wrote:
>
> Hello,
>
> I've found a strange behavior or I'm missing something obvious (or
> np.unique is not supp
Hello,
I've found a strange behavior or I'm missing something obvious (or np.unique is
not supposed to work with structured arrays).
I'm trying to extract unique values from a simple structured array but it does
not seem to work as expected.
Here is a minimal script showing the problem:
impor