DivideScalar¶
- class lsst.analysis.tools.actions.scalar.DivideScalar(*args, **kw)¶
Bases:
ScalarActionCalculate (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
AnalysisActionexpects 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[tuple[Any, ...], dtype[_ScalarT]] | Scalar | HealSparseMap | Tensor | Mapping], **kwargs) Scalar¶
Return the result of A/B.
- Parameters:
- data
KeyedData
- data
- Returns:
- result
Scalar The result of dividing A by B.
- result
- getInputSchema() Iterable[tuple[str, type[numpy.ndarray[tuple[Any, ...], numpy.dtype[_ScalarT]]] | type[lsst.analysis.tools.interfaces._interfaces.Scalar] | type[healsparse.healSparseMap.HealSparseMap] | type[lsst.analysis.tools.interfaces._interfaces.Tensor] | type[Mapping]]]¶
Return the schema an
AnalysisActionexpects 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