This commit is contained in:
gac-S_Changer
2018-09-26 17:30:28 +02:00
parent e59582ad02
commit dc21099fd6
3 changed files with 42 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ def mount(segment, puck, sample, force=False, read_dm=False):
robot.move_dewar()
robot.get_dewar(segment, puck, sample)
set_setting("mounted_sample_position", get_sample_name(segment, puck, sample))
@@ -64,7 +65,18 @@ def mount(segment, puck, sample, force=False, read_dm=False):
smart_magnet.set_mount_current()
robot.put_gonio()
robot.put_gonio()
try:
dry_mount_count = int(get_setting("dry_mount_counter"))
except:
dry_mount_count = 0
set_setting("dry_mount_counter", dry_mount_count+1)
#TODO: Auto-dry procedure
if is_force_dry():
pass
robot.move_dewar()
mount_sample_detected = smart_magnet.check_mounted(idle_time=0.25, timeout = 1.0)
#TODO: Should do on finally?