From f627d6e2f293ba925e4b0b80d2a91153253db119 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Wed, 17 Jan 2024 11:59:30 +0000 Subject: [PATCH] Always generate the preview stitch The preview stitch is useful even if stitch-as-you-go is not desired. I've enabled it all the time, not just when the box is ticked. --- src/openflexure_microscope_server/things/smart_scan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openflexure_microscope_server/things/smart_scan.py b/src/openflexure_microscope_server/things/smart_scan.py index d7f11ab4..7bf05a5e 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -564,9 +564,9 @@ class SmartScanThing(Thing): positions.append(loc[:2]) names.append(name) + if not self.preview_stitch_running(): + self.preview_stitch_start(images_folder) if self.stitch_automatically: - if not self.preview_stitch_running(): - self.preview_stitch_start(images_folder) if not self.correlate_running(): self.correlate_start(images_folder, overlap=overlap)