DivideScalar#

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

Bases: ScalarAction

Calculate (A/B) for scalars.

Attributes Summary

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 Summary

__call__(data, **kwargs)

Return the result of A/B.

getInputSchema()

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[tuple[Any, ...], dtype[_ScalarT]] | Scalar | HealSparseMap | Tensor | Mapping], **kwargs) Scalar#

Return the result of A/B.

Parameters#

data : KeyedData

Returns#

resultScalar

The result of dividing A by B.

getInputSchema() Iterable[tuple[str, type[ndarray[tuple[Any, ...], dtype[_ScalarT]]] | type[Scalar] | type[HealSparseMap] | type[Tensor] | type[Mapping]]]#

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.