Separated move_and_measure locks
This commit is contained in:
parent
ce57d37dc9
commit
da490fdfcd
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ class MoveAndMeasureAPI(ActionView):
|
||||||
|
|
||||||
if microscope.has_real_stage():
|
if microscope.has_real_stage():
|
||||||
# Acquire microscope lock with 1s timeout
|
# Acquire microscope lock with 1s timeout
|
||||||
with microscope.lock(timeout=1):
|
with microscope.camera.lock, microscope.stage.lock:
|
||||||
return move_and_measure(microscope, dz=args.get("dz"))
|
return move_and_measure(microscope, dz=args.get("dz"))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue