fixedvalue¶
- class baseband.base.utils.fixedvalue(fget=None, doc=None, lazy=False)[source] [edit on github]¶
Bases:
classproperty
Property that is fixed for all instances of a class.
Based on
astropy.utils.decorators.classproperty
, but with a setter that passes if the value is identical to the fixed value, and otherwise raises aValueError
.Attributes Summary
Methods Summary
deleter
(fdel)Descriptor to obtain a copy of the property with a different deleter.
getter
(fget)Descriptor to obtain a copy of the property with a different getter.
setter
(fset)Descriptor to obtain a copy of the property with a different setter.
Attributes Documentation
- fdel¶
- fget¶
- fset¶
Methods Documentation
- deleter(fdel) [edit on github]¶
Descriptor to obtain a copy of the property with a different deleter.
- getter(fget) [edit on github]¶
Descriptor to obtain a copy of the property with a different getter.
- setter(fset) [edit on github]¶
Descriptor to obtain a copy of the property with a different setter.