From 5f092835ace9a5e547a4ed9260560cb0ec49f5d7 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Wed, 6 Aug 2025 15:57:31 +0000 Subject: [PATCH] Apply suggestions from code review of branch yet-another-smart-scan-refactor --- 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 559aea47..2af113ac 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -130,7 +130,9 @@ class SmartScanThing(lt.Thing): self._stage = stage self._cam = cam self._csm = csm - # Confirm scan data is None as start of scan. + # `scan_data` should already be None. This is added as a precaution as + # the presence of `scan_data` is used during error handling to + # determine whether the scan started. self._scan_data = None try: self._check_background_and_csm_set()