diff --git a/bloptools/devices.py b/bloptools/devices.py index a203eaf..0afc20e 100644 --- a/bloptools/devices.py +++ b/bloptools/devices.py @@ -15,11 +15,10 @@ class DOF(Signal): Degree of freedom """ - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + ... -class RODOF(DOF): +class DOFRO(DOF): """ Read-only degree of freedom """ @@ -31,7 +30,7 @@ def set(self, value, *, timestamp=None, force=False): raise ReadOnlyError(f'Cannot set, DOF "{self.name}" is read-only!') -class BrownianMotion(RODOF): +class BrownianMotion(DOFRO): """ Read-only degree of freedom simulating brownian motion """ @@ -61,6 +60,9 @@ class TimeReadback(SignalRO): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) + def get(self): + return ttime.time() + class ConstantReadback(SignalRO): """