This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user