Skip to content

Commit

Permalink
Use self.sleep() rather than time.sleep().
Browse files Browse the repository at this point in the history
  • Loading branch information
ehpor committed Sep 9, 2024
1 parent 9a0492b commit 47f9e3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions catkit2/services/thorlabs_mcls1_sim/thorlabs_mcls1_sim.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import time
import numpy as np
import threading

Expand Down Expand Up @@ -79,7 +78,7 @@ def update_status(self):
for getter in self.getters:
getter()

time.sleep(1)
self.sleep(1)

def set_emission(self, emission):
self.testbed.simulator.set_source_power(
Expand Down

0 comments on commit 47f9e3e

Please sign in to comment.