From aea43a31cc10a303a5acffdfd508d18ca8769313 Mon Sep 17 00:00:00 2001 From: appleb_m Date: Thu, 2 Jul 2026 17:18:36 +0200 Subject: [PATCH] workflows: fixed bug where safe_positon check was looking at the desired dtz position --- src/aare/daq/workflows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aare/daq/workflows.py b/src/aare/daq/workflows.py index e4a0d797..1bb8e409 100644 --- a/src/aare/daq/workflows.py +++ b/src/aare/daq/workflows.py @@ -15,7 +15,7 @@ SAFE_POSITION = 600 def _move_detector_to_safe_position_if_needed(devs: BeamlineDevices, cfg: BeamlineConfig): safe_position = cfg.dtz_safe_position - current_dtz = cfg.dtz + current_dtz = devs.dtz if safe_position is None: logger.debug("No dtz_safe_position configured; skipping detector move")