Apply suggestions from code review of branch snake-scan

Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
Joe Knapper 2026-02-09 15:35:19 +00:00 committed by Julian Stirling
parent 1c17b27c05
commit eb88e1f1c0

View file

@ -66,7 +66,7 @@ class ScanWorkflow(Generic[SettingModelType], lt.Thing):
"""A tuple of the image resolution to capture.""" """A tuple of the image resolution to capture."""
# CSM may not be set, and isn't required for a workflow. Allow for it to exist or be None # CSM may not be set, and isn't required for a workflow. Allow for it to exist or be None
_csm: Optional[CameraStageMapper] = None _csm: Optional[CameraStageMapper] = lt.thing_slot()
def check_before_start(self, scan_name: str) -> None: def check_before_start(self, scan_name: str) -> None:
"""Check before the scan starts. Throw an error if the scan shouldn't start. """Check before the scan starts. Throw an error if the scan shouldn't start.