Files
x06da/script/motion/put_dewar.py
alexgobbo 7ab43e1840 08 2025
2025-08-07 10:04:13 +02:00

23 lines
550 B
Python

def put_dewar(segment, puck, sample, force=False):
"""
"""
print "put_dewar: ", segment, puck, sample, force
cover_info = get_cover_location_mm()
#Initial checks
assert_valid_address(segment, puck, sample)
assert_puck_detected(segment, puck)
robot.assert_no_task()
robot.reset_motion()
robot.wait_ready()
robot.assert_cleared()
#Enabling
enable_motion()
if not robot.is_dewar():
robot.move_dewar(*cover_info)
robot.put_dewar(segment, puck, sample)
return True