workflows: fixed bug where safe_positon check was looking at the desired dtz position
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user