undefined#

class undefined(arr)[source]#

Returns the indices of the values of the array that are not-nan.

Parameters:

arr (array) – any array

Example:

inds = hpv.defined(np.array([1,np.nan,0,np.nan,1,0,1]))