RangeSelector#
- class lsst.analysis.tools.actions.vector.RangeSelector(*args, **kw)#
Bases:
SelectorBaseSelects rows within a range, inclusive of min/exclusive of max.
Attributes Summary
The maximum value (exclusive) (
float, defaultinf)The minimum value (inclusive) (
float, defaultnp.float64(-1.7976931348623157e+308))Key to use when populating plot info, ignored if empty string (
str, default'')Key to select from data (
str)Methods Summary
__call__(data, **kwargs)Return a mask of rows with values within the specified range.
Return the schema an
AnalysisActionexpects to be present in the arguments supplied to the __call__ method.Attributes Documentation
- maximum#
The maximum value (exclusive) (
float, defaultinf)
- minimum#
The minimum value (inclusive) (
float, defaultnp.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 :
KeyedDataReturns#
- result
Vector A mask of the rows with values within the specified range.
- result
- getInputSchema() Iterable[tuple[str, type[ndarray[tuple[Any, ...], dtype[_ScalarT]]] | type[Scalar] | type[HealSparseMap] | type[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