idefined#

class idefined(arr, inds)[source]#

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

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

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

Example:

inds = hpv.idefined(np.array([3,np.nan,np.nan,4]), inds=np.array([5,22,47,93]))