DivideScalar¶
- class lsst.analysis.tools.actions.scalar.DivideScalar(*args, **kw)¶
Bases:
ScalarAction
Calculate (A/B) for scalars.
Attributes Summary
Action which supplies scalar A (
ScalarAction
, default<class 'lsst.analysis.tools.interfaces._actions.ScalarAction'>
)Action which supplies scalar B (
ScalarAction
, default<class 'lsst.analysis.tools.interfaces._actions.ScalarAction'>
)Methods Summary
__call__
(data, **kwargs)Return the result of A/B.
Return the schema an
AnalysisAction
expects to be present in the arguments supplied to the __call__ method.Attributes Documentation
- actionA¶
Action which supplies scalar A (
ScalarAction
, default<class 'lsst.analysis.tools.interfaces._actions.ScalarAction'>
)
- actionB¶
Action which supplies scalar B (
ScalarAction
, default<class 'lsst.analysis.tools.interfaces._actions.ScalarAction'>
)
Methods Documentation
- __call__(data: MutableMapping[str, ndarray[Any, dtype[ScalarType]] | Scalar | HealSparseMap | Tensor], **kwargs) Scalar ¶
Return the result of A/B.
- Parameters:
- data
KeyedData
- data
- Returns:
- result
Scalar
The result of dividing A by B.
- result
- getInputSchema() Tensor]]] ¶
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