AddComputedVector¶
- class lsst.analysis.tools.actions.keyedData.AddComputedVector(*args, **kw)¶
Bases:
KeyedDataAction
Compute a
Vector
from the specifiedVectorAction
and add it to a copy of the KeyedData, returning the result.Attributes Summary
Action to use to compute Vector (
VectorAction
, default<class 'lsst.analysis.tools.interfaces._actions.VectorAction'>
)Key name to add to KeyedData (
str
)Methods Summary
__call__
(data, **kwargs)Call self as a function.
Return the schema an
AnalysisAction
expects to be present in the arguments supplied to the __call__ method.Return the schema an
AnalysisAction
will produce, if the__call__
method returnsKeyedData
, otherwise this may return None.Attributes Documentation
- action¶
Action to use to compute Vector (
VectorAction
, default<class 'lsst.analysis.tools.interfaces._actions.VectorAction'>
)
Methods Documentation
- __call__(data: MutableMapping[str, ndarray[Any, dtype[_ScalarType_co]] | Scalar | HealSparseMap | Tensor | Mapping], **kwargs) MutableMapping[str, ndarray[Any, dtype[_ScalarType_co]] | Scalar | HealSparseMap | Tensor | Mapping] ¶
Call self as a function.
- getInputSchema() Mapping]]] ¶
Return the schema an
AnalysisAction
expects to be present in the arguments supplied to the __call__ method.- Returns:
- result
KeyedDataSchema
The schema this action requires to be present when calling this action, keys are unformatted.
- result
- getOutputSchema() Mapping]]] ¶
Return the schema an
AnalysisAction
will produce, if the__call__
method returnsKeyedData
, otherwise this may return None.- Returns:
- result
KeyedDataSchema
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
.
- result