class cached_property¶
- class deeptime.util.decorators.cached_property(fget=None, fset=None, fdel=None, doc=None)¶
Property that gets cached, obeys property api and can also be invalidated and overridden. Inspired from https://github.com/pydanny/cached-property/ and https://stackoverflow.com/a/17330273.
Attributes
fdel
fget
fset
Methods
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.
invalidate
()setter
(fset)Descriptor to obtain a copy of the property with a different setter.
- 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.