workflows: when going to dewar transfer if tell is in pPark and get_moutn_sample is Noone don't dry. Untested!

This commit is contained in:
2026-06-22 10:46:08 +02:00
parent b6cbb5ce26
commit 610aa4a998
+5 -1
View File
@@ -222,9 +222,13 @@ def common2dh(devs: BeamlineDevices, cfg: BeamlineConfig):
devs.samcam_auto(AutoEnum.AUTO)
common_2rse(devs, cfg)
devs.samcam_auto(AutoEnum.ONCE)
if devs.tell.is_position("pPark") and devs.tell.get_mounted_sample() is None:
logger.info("TELL already in pPark; skipping dry/park preparation for dewar transfer")
return
if devs.tell.get_mounted_sample() is not None:
try:
# Best effort try to unmount
devs.tell.unmount(wait=True)
except Exception as e:
print(f"Error for unmounting: {e}")