RangeSelector¶
- class lsst.analysis.tools.actions.vector.RangeSelector(*args, **kw)¶
Bases:
VectorAction
Selects rows within a range, inclusive of min/exclusive of max.
Attributes Summary
Key to select from data (
str
)The maximum value (
float
, defaultinf
)The minimum value (
float
, default-1.7976931348623157e+308
)Methods Summary
__call__
(data, **kwargs)Return a mask of rows with values within the specified range.
Return the schema an
AnalysisAction
expects to be present in the arguments supplied to the __call__ method.Attributes Documentation
Methods Documentation
- __call__(data: MutableMapping[str, ndarray[Any, dtype[ScalarType]] | Scalar | HealSparseMap], **kwargs) ndarray[Any, dtype[ScalarType]] ¶
Return a mask of rows with values within the specified range.
- Parameters:
- data
KeyedData
- data
- Returns:
- result
Vector
A mask of the rows with values within the specified range.
- result
- getInputSchema() HealSparseMap]]] ¶
Return the schema an
AnalysisAction
expects 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