FracInRange¶
- class lsst.analysis.tools.actions.scalar.FracInRange(*args, **kw)¶
Bases:
ScalarActionCompute the fraction of a distribution that is between specified minimum and maximum values, and is not NaN.
Attributes Summary
The maximum value (
float, default1.7976931348623157e+308)The minimum value (
float, default-1.7976931348623157e+308)Express result as percentage (
bool, defaultFalse)Name of column (
str)Methods Summary
__call__(data, **kwargs)Return the fraction 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
Methods Documentation
- __call__(data: MutableMapping[str, ndarray[Any, dtype[ScalarType]] | Scalar | HealSparseMap], **kwargs) Scalar¶
Return the fraction of rows with values within the specified range.
- Parameters:
- data
KeyedData
- data
- Returns:
- result
Scalar The fraction (or percentage) of rows with values within the specified range.
- result
- getInputSchema() HealSparseMap]]]¶
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