bilby.core.utils.introspection.PropertyAccessor
- class bilby.core.utils.introspection.PropertyAccessor(container_instance_name, property_name)[source]
Bases:
object
Generic 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)