Skip to content

Commit

Permalink
fixed devices
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswmorris committed Aug 11, 2023
1 parent 50dd161 commit 5d947ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bloptools/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand All @@ -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
"""
Expand Down Expand Up @@ -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):
"""
Expand Down

0 comments on commit 5d947ff

Please sign in to comment.