KeyedScalars

class lsst.analysis.tools.actions.keyedData.KeyedScalars(*args, **kw)

Bases: KeyedDataAction

Creates an output of type KeyedData, where the keys are given by the identifiers in scalarActions and the values are the results of the corresponding ScalarAction.

Attributes Summary

scalarActions

Create a KeyedData of individual ScalarActions (ConfigurableActionStructField)

Methods Summary

__call__(data, **kwargs)

Call self as a function.

getInputSchema()

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

getOutputSchema()

Return the schema an AnalysisAction will produce, if the __call__ method returns KeyedData, otherwise this may return None.

Attributes Documentation

scalarActions

Create a KeyedData of individual ScalarActions (ConfigurableActionStructField)

Methods Documentation

__call__(data: MutableMapping[str, ndarray[Any, dtype[ScalarType]] | Scalar | HealSparseMap | Tensor], **kwargs) MutableMapping[str, ndarray[Any, dtype[ScalarType]] | Scalar | HealSparseMap | Tensor]

Call self as a function.

getInputSchema() Tensor]]]

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

Returns:
resultKeyedDataSchema

The schema this action requires to be present when calling this action, keys are unformatted.

getOutputSchema() Tensor]]]

Return the schema an AnalysisAction will produce, if the __call__ method returns KeyedData, otherwise this may return None.

Returns:
resultKeyedDataSchema or None

The schema this action will produce when returning from call. This will be unformatted if any templates are present. Should return None if action does not return KeyedData.