workflows: fixed bug where safe_positon check was looking at the desired dtz position

This commit is contained in:
2026-07-02 17:18:36 +02:00
parent 0af58574b2
commit aea43a31cc
+1 -1
View File
@@ -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")