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:
appleb_m authored and appleb_m committed 2026-06-24 15:30:06 +02:00
1 parent c6ac739548
commit fab41cd40c
1 file changed
+5 -1
+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}")