Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Aug 28, 2024
1 parent c4b701f commit 5806948
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gui/CAEN-N1471H/caen_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ def turn_off(self):
self.stat["ILK"] = False # not sure


# =========================================================


class ModuleSimulator:
def __init__(self, nChannels, trip_probability=0.05):
self.name = "N1471H SIMULATOR"
Expand All @@ -130,7 +127,7 @@ def __init__(self, nChannels, trip_probability=0.05):

# Start the device reading thread
self.randomize_thread = threading.Thread(
target=self.__continous_randomize, daemon=True
target=self.__continuous_randomize, daemon=True
).start()

def clear_alarm_signal(self):
Expand All @@ -157,7 +154,7 @@ def _randomize(self):
for ch in self.channels:
ch._randomize()

def __continous_randomize(self, wait_seconds=1):
def __continuous_randomize(self, wait_seconds=1):
while True:
self._randomize()
time.sleep(wait_seconds)
Expand Down

0 comments on commit 5806948

Please sign in to comment.