From e840516ba4df2d09e926b6cffe077058e23b9930 Mon Sep 17 00:00:00 2001 From: qxw138 Date: Fri, 6 Jun 2025 22:50:11 +0800 Subject: [PATCH] Update biomek.py --- unilabos/devices/liquid_handling/biomek.py | 52 +++++++++++----------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/unilabos/devices/liquid_handling/biomek.py b/unilabos/devices/liquid_handling/biomek.py index 925ac53c..7d671a68 100644 --- a/unilabos/devices/liquid_handling/biomek.py +++ b/unilabos/devices/liquid_handling/biomek.py @@ -873,35 +873,35 @@ labware_with_liquid = ''' handler = LiquidHandlerBiomek() - handler.temp_protocol = { - "meta": {}, - "labwares": [], - "steps": [] - } +handler.temp_protocol = { + "meta": {}, + "labwares": [], + "steps": [] +} - input_steps = json.loads(steps_info) - labwares = json.loads(labware_with_liquid) +input_steps = json.loads(steps_info) +labwares = json.loads(labware_with_liquid) - for step in input_steps['steps']: - operation = step['operation'] - parameters = step['parameters'] +for step in input_steps['steps']: + operation = step['operation'] + parameters = step['parameters'] - if operation == 'transfer': - handler.transfer_biomek(source=parameters['source'], - target=parameters['target'], - volume=parameters['volume'], - tip_rack=parameters['tip_rack'], - aspirate_techniques='MC P300 high', - dispense_techniques='MC P300 high') - elif operation == 'move_labware': - handler.move_biomek(source=parameters['source'], - target=parameters['target']) - elif operation == 'oscillation': - handler.oscillation_biomek(rpm=parameters['rpm'], - time=parameters['time']) - elif operation == 'incubation': - handler.incubation_biomek(time=parameters['time']) + if operation == 'transfer': + handler.transfer_biomek(source=parameters['source'], + target=parameters['target'], + volume=parameters['volume'], + tip_rack=parameters['tip_rack'], + aspirate_techniques='MC P300 high', + dispense_techniques='MC P300 high') + elif operation == 'move_labware': + handler.move_biomek(source=parameters['source'], + target=parameters['target']) + elif operation == 'oscillation': + handler.oscillation_biomek(rpm=parameters['rpm'], + time=parameters['time']) + elif operation == 'incubation': + handler.incubation_biomek(time=parameters['time']) - print(json.dumps(handler.temp_protocol, indent=4)) +print(json.dumps(handler.temp_protocol, indent=4))