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[Any, dtype[ScalarType]] | Scalar | HealSparseMap | Tensor], **kwargs) Scalar

Return the result of A/B.

Parameters:
dataKeyedData
Returns:
resultScalar

The result of dividing A by B.

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.