4.7.4.2.3. statsmodels.tools.decorators.OneTimeProperty¶
-
class
statsmodels.tools.decorators.
OneTimeProperty
(func)[source]¶ A descriptor to make special properties that become normal attributes.
This is meant to be used mostly by the auto_attr decorator in this module. Author: Fernando Perez, copied from nitime
Create a OneTimeProperty instance.
Parameters: func : method
The method that will be called the first time to compute a value. Afterwards, the method’s name will be a standard attribute holding the value of this computation.