PropertyAccessor¶
- class PropertyAccessor(container_instance_name, property_name)[source]¶
Bases:
objectGeneric descriptor class that allows handy access of properties without long boilerplate code. The properties of Interferometer are defined as instances of this class.
This avoids lengthy code like
@property def length(self): return self.geometry.length @length.setter def length(self, length): self.geometry.length = length
in the Interferometer class
- __call__(*args, **kwargs)¶
Call self as a function.
Methods
__init__(container_instance_name, property_name)