This commit is contained in:
@@ -12,6 +12,7 @@ DESC_DEFAULT = DESC_FAST
|
||||
AUX_SEGMENT = "X"
|
||||
|
||||
|
||||
|
||||
DEFAULT_ROBOT_POLLING = 500
|
||||
TASK_WAIT_ROBOT_POLLING = 50
|
||||
|
||||
|
||||
@@ -147,6 +147,14 @@ def stop_puck_detection():
|
||||
|
||||
|
||||
|
||||
def get_detected_pucks():
|
||||
ret = []
|
||||
for i in range(30):
|
||||
p = BasePlate.getPucks()[i]
|
||||
if (str(p.getDetection()) == "Present"):
|
||||
ret.append(str(p.getName()))
|
||||
return ret
|
||||
|
||||
###################################################################################################
|
||||
# Device initialization
|
||||
###################################################################################################
|
||||
|
||||
@@ -11,7 +11,7 @@ def dry(heat_time=30.0, speed=0.5, wait_cold = 30.0):
|
||||
|
||||
|
||||
if robot.simulated:
|
||||
time.sleep(3.0)
|
||||
time.sleep(10.0)
|
||||
return
|
||||
|
||||
#Initial chec
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
mount_sample_id = None
|
||||
mount_sample_detected = None
|
||||
|
||||
def mount(segment, puck, sample, force=False, read_dm=False):
|
||||
def mount(segment, puck, sample, force=False, read_dm=False, auto_unmount=False):
|
||||
"""
|
||||
"""
|
||||
global mount_sample_id, mount_sample_detected
|
||||
|
||||
@@ -15,7 +15,7 @@ def unmount(segment = None, puck = None, sample = None, force=False):
|
||||
assert_valid_address(segment, puck, sample)
|
||||
assert_puck_detected(segment, puck)
|
||||
|
||||
if robot.simulated:
|
||||
if robot.simulated:
|
||||
time.sleep(3.0)
|
||||
update_samples_info_sample_unmount(get_puck_name(segment, puck), sample)
|
||||
set_setting("mounted_sample_position", None)
|
||||
@@ -31,9 +31,10 @@ def unmount(segment = None, puck = None, sample = None, force=False):
|
||||
set_status("Umounting: " + str(segment) + str(puck) + str(sample))
|
||||
|
||||
try:
|
||||
smart_magnet.enforce_sample_detection()
|
||||
if smart_magnet.check_mounted(idle_time=0.5, timeout = 3.0) == False:
|
||||
raise Exception("No pin detected on gonio")
|
||||
if not force:
|
||||
smart_magnet.enforce_sample_detection()
|
||||
if smart_magnet.check_mounted(idle_time=0.5, timeout = 3.0) == False:
|
||||
raise Exception("No pin detected on gonio")
|
||||
|
||||
|
||||
#Enabling
|
||||
|
||||
Reference in New Issue
Block a user