{"python_script":{"script":"def weigh_vial(vial_index: Optional[int]):\n\tdeck.robotic_arm.pick_up_vial_from_tray(**{'vial_number': vial_index})\n\tdeck.robotic_arm.place_vial_on_capping_station()\n\tdeck.capping_station.uncap_vial()\n\tdeck.robotic_arm.pick_up_vial_on_capping_station()\n\tdeck.robotic_arm.place_vial_on_weigh_balance()\n\tweight = deck.weigh_balance.get_weight_mg()\n\tdeck.robotic_arm.pick_up_vial_on_weigh_balance()\n\tdeck.robotic_arm.place_vial_on_capping_station()\n\tdeck.capping_station.cap_vial()\n\tdeck.robotic_arm.pick_up_vial_on_capping_station()\n\tdeck.robotic_arm.place_vial_in_tray(**{'vial_number': vial_index})\n\treturn {'weight':weight,}"},"script":{"author":"demo_8d93bbe1","deck":"app","description":"","editing_type":"script","id_order":{"cleanup":[],"prep":[],"script":["1","2","3","4","5","6","7","8","9","10","11"]},"last_modified":"2026-10-05 18:40:28","name":"weigh_vial","python_script":null,"registered":true,"return_values":[],"script_dict":{"cleanup":[],"prep":[],"script":[{"action":"pick_up_vial_from_tray","arg_order":["vial_number"],"arg_types":{"vial_number":["int","NoneType"]},"args":{"vial_number":"#vial_index"},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":1,"instrument":"deck.robotic_arm","return":"","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":81259599746520},{"action":"place_vial_on_capping_station","arg_order":[],"arg_types":{},"args":{},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":2,"instrument":"deck.robotic_arm","return":"","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":33938246629995},{"action":"uncap_vial","arg_order":[],"arg_types":{},"args":{},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":3,"instrument":"deck.capping_station","return":"","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":167475556469878},{"action":"pick_up_vial_on_capping_station","arg_order":[],"arg_types":{},"args":{},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":4,"instrument":"deck.robotic_arm","return":"","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":63335991576228},{"action":"place_vial_on_weigh_balance","arg_order":[],"arg_types":{},"args":{},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":5,"instrument":"deck.robotic_arm","return":"","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":13277045481977},{"action":"get_weight_mg","arg_order":[],"arg_types":{},"args":{},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":6,"instrument":"deck.weigh_balance","return":"weight","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":7433684951215},{"action":"pick_up_vial_on_weigh_balance","arg_order":[],"arg_types":{},"args":{},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":7,"instrument":"deck.robotic_arm","return":"","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":211562092603237},{"action":"place_vial_on_capping_station","arg_order":[],"arg_types":{},"args":{},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":8,"instrument":"deck.robotic_arm","return":"","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":270977293680710},{"action":"cap_vial","arg_order":[],"arg_types":{},"args":{},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":9,"instrument":"deck.capping_station","return":"","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":267629252348049},{"action":"pick_up_vial_on_capping_station","arg_order":[],"arg_types":{},"args":{},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":10,"instrument":"deck.robotic_arm","return":"","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":54150440337234},{"action":"place_vial_in_tray","arg_order":["vial_number"],"arg_types":{"vial_number":["int","NoneType"]},"args":{"vial_number":"#vial_index"},"batch_action":false,"consolidate_batch_args":[],"coroutine":false,"id":11,"instrument":"deck.robotic_arm","return":"","return_format":{"annotation":"","kind":"scalar","types":[]},"uuid":119388806687868}]},"status":"editing","time_created":"2026-10-05 18:34:33","uuid":"fd3e7ab3-270b-4756-905d-9f57f93dbde7"}}
