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:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user