Files
mxsc/script/motion/unmount.py
gac-S_Changer 05f982c86b
2018-05-22 16:07:56 +02:00

16 lines
418 B
Python

def unmount(segment, puck, sample):
"""
"""
assertValidAddress(segment, puck, sample)
hexiposi.move(segment)
img_segment = get_img_cover_pos()
if img_segment != segment:
raise Excepton ("Image detection of cover does not match hexiposi: " + str(img_segment))
if type(segment) == str:
segment = ord(segment.upper()) - ord('A') +1
robot.unmount(segment, puck, sample)