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 (exclusive) (float, default inf)

minimum

The minimum value (inclusive) (float, default np.float64(-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 (exclusive) (float, default inf)

minimum#

The minimum value (inclusive) (float, default np.float64(-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[tuple[Any, ...], dtype[_ScalarT]] | Scalar | HealSparseMap | Tensor | Mapping], **kwargs) ndarray[tuple[Any, ...], dtype[_ScalarT]]#

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

Parameters#

data : KeyedData

Returns#

resultVector

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

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.