TimerModelWrapper¶
-
class
pyapprox.models.wrappers.
TimerModelWrapper
(function, base_model=None)[source]¶ Bases:
object
Methods Summary
__call__
(samples)Call self as a function.
x__getattr__
(name)Cannot get following to work
Methods Documentation
-
x__getattr__
(name)[source]¶ Cannot get following to work
If defining a custom __getattr__ it seems I cannot have member variables with the same name in this class and class definition of function
if self.function is itself a model object allow the access of self.function.name using self.name
Note __getattr__ will be invoked on python objects only when the requested attribute is not found in the particular object’s space.
-