SumAction

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

Bases: ScalarFromVectorAction

Returns the sum of all values in the column.

Attributes Summary

vectorKey

Key of Vector to compute statistic from.

Methods Summary

__call__(data, **kwargs)

Compute a scalar value from keyed data.

Attributes Documentation

vectorKey

Key of Vector to compute statistic from. (str)

Methods Documentation

__call__(data: MutableMapping[str, ndarray[Any, dtype[ScalarType]] | Scalar | HealSparseMap], **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.