This commit is contained in:
gac-S_Changer
2018-11-07 15:38:04 +01:00
parent 742fbc5824
commit 0eb57c0238
5 changed files with 59 additions and 22 deletions

View File

@@ -23,6 +23,10 @@ def mount(segment, puck, sample, force=False, read_dm=False, auto_unmount=False)
assert_valid_address(segment, puck, sample)
assert_puck_detected(segment, puck)
if auto_unmount:
if get_setting("mounted_sample_position") is not None:
unmount()
if robot.simulated:
time.sleep(3.0)
mount_sample_detected = True