From a499d9230c888efc58fceab292fe3a5673373cc6 Mon Sep 17 00:00:00 2001 From: jaknapper Date: Wed, 21 May 2025 15:06:23 +0100 Subject: [PATCH] Switch to updated "preview stitch" mode in stitching --- src/openflexure_microscope_server/things/smart_scan.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openflexure_microscope_server/things/smart_scan.py b/src/openflexure_microscope_server/things/smart_scan.py index 1af69b69..7d819bb3 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -932,7 +932,7 @@ class SmartScanThing(Thing): raise FileNotFoundError("No latest scan found") images_dir = self.images_dir_for_scan(self.latest_scan_name) - stitch_path = os.path.join(images_dir, "stitched_from_stage.jpg") + stitch_path = os.path.join(images_dir, "preview.jpg") if not os.path.isfile(stitch_path): raise FileNotFoundError("Latest scan has no preview stitch") return stitch_path @@ -987,7 +987,7 @@ class SmartScanThing(Thing): [ STITCHING_CMD, "--stitching_mode", - "only_stage_stitch", + "preview_stitch", "--minimum_overlap", f"{min_overlap}", self._ongoing_scan_images_dir, @@ -1166,6 +1166,7 @@ class SmartScanThing(Thing): "stitched_from", "stitched.om", "stitching_correlations", + "preview.jp", ] with zipfile.ZipFile(zip_fname, mode="a") as scan_zip: