From 51cd7767004e6730e5e7ae66f85e3e02a612afaa Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 19 Feb 2019 10:43:33 +0000 Subject: [PATCH] Store stage position in metadata --- openflexure_microscope/api/v1/blueprints/camera/capture.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openflexure_microscope/api/v1/blueprints/camera/capture.py b/openflexure_microscope/api/v1/blueprints/camera/capture.py index 80ebed34..861737a3 100644 --- a/openflexure_microscope/api/v1/blueprints/camera/capture.py +++ b/openflexure_microscope/api/v1/blueprints/camera/capture.py @@ -127,6 +127,8 @@ class ListAPI(MicroscopeView): resize=resize, bayer=bayer) + metadata.update({'Position': self.microscope.state['stage']['position']}) + output.put_metadata(metadata) output.put_tags(tags)