RangeField#
- class lsst.pex.config.RangeField(doc, dtype, default=None, optional=False, min=None, max=None, inclusiveMin=True, inclusiveMax=False, deprecated=None)#
Bases:
FieldA configuration field (
lsst.pex.config.Fieldsubclass) that requires the value to be in a specific numeric range.Parameters#
- doc
str A description of the field.
- dtype{
int-type,float-type} The field’s data type: either the
intorfloattype.- default
intorfloat, optional Default value for the field.
- optional
bool, optional When
False,lsst.pex.config.Config.validatewill fail if the field’s value isNone.- minint, float, or
None, optional Minimum value accepted in the range. If
None, the range has no lower bound (equivalent to negative infinity).- max
int,float, or None, optional Maximum value accepted in the range. If
None, the range has no upper bound (equivalent to positive infinity).- inclusiveMin
bool, optional If
True, theminvalue is included in the allowed range.- inclusiveMax
bool, optional If
True, themaxvalue is included in the allowed range.- deprecatedNone or
str, optional A description of why this Field is deprecated, including removal date. If not None, the string is appended to the docstring for this Field.
See Also#
ChoiceField ConfigChoiceField ConfigDictField ConfigField ConfigurableField DictField Field ListField RegistryField
Attributes Summary
The set of data types allowed by
RangeFieldinstances (setcontainingintandfloattypes).Attributes Documentation
- supportedTypes = {<class 'float'>, <class 'int'>}#
The set of data types allowed by
RangeFieldinstances (setcontainingintandfloattypes).
- doc