[Numpy-discussion] Numpy array performance issue

Robert Kern robert.kern at gmail.com
Wed Feb 24 12:53:59 EST 2010


On Wed, Feb 24, 2010 at 11:50, Bruno Santos <bacmsantos at gmail.com> wrote:
> In both versions your lsPhasedValues contains the number of positions in the
> array that match a certain criteria. What I need in that step is the unique
> values and not their positions.

Oops!

lsPhasedValues = np.unique1d(aLoci[j_nSize_mask & (aLoci >= 0)])

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list