Fixed mock stage not moving

This commit is contained in:
Joel Collins 2019-11-21 16:05:26 +00:00
parent dc99a12985
commit 394ef15fbe
2 changed files with 17 additions and 2 deletions

View file

@ -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"])