std_cached_property

Full name: ase2sprkkr.common.decorators.std_cached_property

ase2sprkkr.common.decorators.std_cached_property

Functools.cached_property decorator - the value is computed only once and then stored as an (same-name) instance attribute. You can delete the attribute to invalidate the cache.

Earlier versions of python do not have this decorator, so for these versions is implemented below, otherwise it is taken from functools.