From dbed1c69716e506b9d76fede99b29be001e892db Mon Sep 17 00:00:00 2001 From: jaknapper Date: Wed, 7 May 2025 22:15:11 +0100 Subject: [PATCH] Default resize in stitching for scan tab stitching --- src/openflexure_microscope_server/things/smart_scan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/smart_scan.py b/src/openflexure_microscope_server/things/smart_scan.py index af7f6569..56f0d305 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -733,6 +733,7 @@ class SmartScanThing(Thing): logger=self._scan_logger, scan_name=self._ongoing_scan_name, overlap=self._scan_data["overlap"], + stitch_resize=self._stitch_resize, ) self.promote_stitch_files(self._scan_logger) except SubprocessError as e: @@ -1086,6 +1087,7 @@ class SmartScanThing(Thing): logger: InvocationLogger, scan_name: str, overlap: float = 0.0, + stitch_resize: float = 0.25, ) -> None: """Generate a stitched image based on stage position metadata @@ -1132,7 +1134,7 @@ class SmartScanThing(Thing): "--minimum_overlap", f"{round(overlap * 0.9, 2)}", "--resize", - f"{self._stitch_resize}", + f"{stitch_resize}", images_folder, ], )