Files
mxsc/script/motion/unmount.py
gac-S_Changer eddcf227c3
2018-06-06 15:35:08 +02:00

31 lines
697 B
Python

def unmount(segment, puck, sample, force=False):
"""
"""
print "unmount: ", segment, puck, sample, force
#Initial checks
assertValidAddress(segment, puck, sample)
robot.assert_no_task()
robot.reset_motion()
robot.state.assertReady()
robot.assert_cleared()
#robot.assert_in_known_point()
hexiposi.assert_homed()
#Enabling
enable_motion()
set_hexiposi(segment)
if not force:
visual_check_hexiposi(segment)
#location = robot.get_current_point()
if not robot.is_gonio():
robot.move_gonio()
robot.get_gonio()
robot.move_dewar()
robot.put_dewar(segment, puck, sample)