ifalse#

class ifalse(arr, inds)[source]#

Returns the indices that are true in the array – name is short for indices[false]

Parameters:
  • arr (array) – a Boolean array, used as a filter

  • inds (array) – any other array (usually, an array of indices) of the same size

Example:

inds = hpv.ifalse(np.array([True,False,True,True]), inds=np.array([5,22,47,93]))