RangeSelector

class lsst.analysis.tools.actions.vector.RangeSelector(*args, **kw)

Bases: SelectorBase

Selects rows within a range, inclusive of min/exclusive of max.

Attributes Summary

maximum

The maximum value (float, default inf)

minimum

The minimum value (float, default -1.7976931348623157e+308)

plotLabelKey

Key to use when populating plot info, ignored if empty string (str, default '')

vectorKey

Key to select from data (str)

Methods Summary

__call__(data, **kwargs)

Return a mask of rows with values within the specified range.

getInputSchema()

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

Attributes Documentation

maximum

The maximum value (float, default inf)

minimum

The minimum value (float, default -1.7976931348623157e+308)

plotLabelKey

Key to use when populating plot info, ignored if empty string (str, default '')

vectorKey

Key to select from data (str)

Methods Documentation

__call__(data: MutableMapping[str, ndarray[Any, dtype[ScalarType]] | Scalar | HealSparseMap | Tensor], **kwargs) ndarray[Any, dtype[ScalarType]]

Return a mask of rows with values within the specified range.

Parameters:
dataKeyedData
Returns:
resultVector

A mask of the rows with values within the specified range.

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.