From 6cf99d50960b9d23240a40093ff505fc9f2dad1d Mon Sep 17 00:00:00 2001 From: jaknapper Date: Fri, 25 Apr 2025 14:08:07 +0100 Subject: [PATCH] Stack settings in GUI --- .../things/autofocus.py | 7 ++++++- .../tabContentComponents/slideScanContent.vue | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/autofocus.py b/src/openflexure_microscope_server/things/autofocus.py index 1adb81bf..c6faf8e7 100644 --- a/src/openflexure_microscope_server/things/autofocus.py +++ b/src/openflexure_microscope_server/things/autofocus.py @@ -151,6 +151,7 @@ class AutofocusThing(Thing): Actions here involve moving a stage in z, and using the camera to either capture images (generally, z-stacking) and measuring the sharpness of the field of view to assess focus (autofocus and testing the success of a z-stack)""" + @thing_action def fast_autofocus( self, @@ -209,7 +210,11 @@ class AutofocusThing(Thing): @thing_action def looping_autofocus( - self, stage: Stage, sharpness_monitor: SharpnessMonitorDep, dz=2000, start="centre" + self, + stage: Stage, + sharpness_monitor: SharpnessMonitorDep, + dz=2000, + start="centre", ): """Repeatedly autofocus the stage until it looks focused. diff --git a/webapp/src/components/tabContentComponents/slideScanContent.vue b/webapp/src/components/tabContentComponents/slideScanContent.vue index 8a152fc8..4c4d4643 100644 --- a/webapp/src/components/tabContentComponents/slideScanContent.vue +++ b/webapp/src/components/tabContentComponents/slideScanContent.vue @@ -24,6 +24,20 @@ label="Autofocus range (steps)" /> +
+ +
+
+ +