puck dislodgement check

This commit is contained in:
gac-S_Changer committed 2022-12-13 14:08:03 +01:00
1 parent 8a67aac0a7
commit 861799ecc1
2 files changed
+12 -5

No files matched your search

+8 -2
View File
@@ -27,8 +27,14 @@ def unmount(segment = None, puck = None, sample = None, force=True, auto_unmount
needs_chilling = not is_rt and was_warm
needs_drying = is_rt and was_cold
move_cold_at_end = str(next_segment) in COLD_SEGMENTS
try:
assert_puck_detected(segment, puck)
except:
msg = "puck for sample %s no longer present/detected afget get_dewar()" % (pos,)
evlog(msg)
raise Exception(msg)
#Initial checks
if not auto_unmount:
print "%4.1f s asserting" % (tg() - t1,)