Minor formatting changes

This commit is contained in:
Joel Collins 2019-01-30 12:02:35 +00:00
parent 7ad1e7507f
commit 0c156128fc
2 changed files with 2 additions and 4 deletions

View file

@ -50,10 +50,8 @@ class Plugin(MicroscopePlugin):
print("Starting a long-running task...")
n_array = []
#print("Acquiring camera and stage locks...")
#with self.microscope.camera.lock, self.microscope.stage.lock:
print("Acquiring composite microscope lock...")
with self.microscope.lock:
with self.microscope.camera.lock, self.microscope.stage.lock:
for _ in range(t_run):
n_array.append(random.random())
time.sleep(1)