From 2c532e11c8ad2bf5ed902954d3cef92f9a0a46e8 Mon Sep 17 00:00:00 2001 From: jaknapper Date: Tue, 24 Feb 2026 12:45:42 +0000 Subject: [PATCH] Max_range cant be negative --- src/openflexure_microscope_server/things/scan_workflows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/scan_workflows.py b/src/openflexure_microscope_server/things/scan_workflows.py index 7b10cbff..85198a9e 100644 --- a/src/openflexure_microscope_server/things/scan_workflows.py +++ b/src/openflexure_microscope_server/things/scan_workflows.py @@ -290,7 +290,7 @@ class HistoScanWorkflow(RectGridWorkflow[HistoScanSettingsModel]): This uses the settings from the ``BackgroundDetectThing``. """ - max_range: int = lt.setting(default=45000) + max_range: int = lt.setting(default=45000, ge=0) """The maximum distance in steps from the centre of the scan.""" # Stacking settings