puck dislodgement check

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

View File

@@ -1,11 +1,12 @@
#Tue Dec 13 02:42:36 CET 2022
dry_mount_counter=12
#Tue Dec 13 14:07:32 CET 2022
dry_mount_counter=0
mounted_sample_position=C32
room_temperature_enabled=false
pin_offset=-0.0
cryopos_in=5.0
puck_types=true
imaging_enabled=false
dry_timestamp=1.670892576058E9
dry_timestamp=1.670936852103E9
roi_h=1000
led_level=0.0
beamline_status_enabled=false

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,)