finite_mean

PlasmaCalcs.tools.arrays.finite_mean(arr, *, if_empty=nan)

returns mean of all the finite values of arr. (return if_empty if arr has no finite values.)