FracNan#

class lsst.analysis.tools.actions.scalar.FracNan(*args, **kw)#

Bases: ScalarFromVectorAction

Compute the fraction of vector entries that are NaN.

Attributes Summary

percent

Express result as percentage (bool, default False)

vectorKey

Key of Vector to compute statistic from.

Methods Summary

__call__(data, **kwargs)

Compute a scalar value from keyed data.

Attributes Documentation

percent#

Express result as percentage (bool, default False)

vectorKey#

Key of Vector to compute statistic from. (str)

Methods Documentation

__call__(data: MutableMapping[str, ndarray[tuple[Any, ...], dtype[_ScalarT]] | Scalar | HealSparseMap | Tensor | Mapping], **kwargs) Scalar#

Compute a scalar value from keyed data.

Parameters#

data

Keyed data to compute a value from.

kwargs

Additional keyword arguments.

Returns#

A scalar value.