Fixed mock stage not moving
This commit is contained in:
parent
dc99a12985
commit
394ef15fbe
2 changed files with 17 additions and 2 deletions
|
|
@ -52,5 +52,7 @@ class MoveStageAPI(MicroscopeView):
|
|||
# Explicitally acquire lock
|
||||
with self.microscope.stage.lock:
|
||||
self.microscope.stage.move_rel(position)
|
||||
else:
|
||||
logging.warning("Unable to move. No stage found.")
|
||||
|
||||
return jsonify(self.microscope.status["stage"]["position"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue