Update biomek.py

This commit is contained in:
qxw138
2025-06-06 22:50:11 +08:00
parent 146d8c5296
commit e840516ba4

View File

@@ -873,35 +873,35 @@ labware_with_liquid = '''
handler = LiquidHandlerBiomek() handler = LiquidHandlerBiomek()
handler.temp_protocol = { handler.temp_protocol = {
"meta": {}, "meta": {},
"labwares": [], "labwares": [],
"steps": [] "steps": []
} }
input_steps = json.loads(steps_info) input_steps = json.loads(steps_info)
labwares = json.loads(labware_with_liquid) labwares = json.loads(labware_with_liquid)
for step in input_steps['steps']: for step in input_steps['steps']:
operation = step['operation'] operation = step['operation']
parameters = step['parameters'] parameters = step['parameters']
if operation == 'transfer': if operation == 'transfer':
handler.transfer_biomek(source=parameters['source'], handler.transfer_biomek(source=parameters['source'],
target=parameters['target'], target=parameters['target'],
volume=parameters['volume'], volume=parameters['volume'],
tip_rack=parameters['tip_rack'], tip_rack=parameters['tip_rack'],
aspirate_techniques='MC P300 high', aspirate_techniques='MC P300 high',
dispense_techniques='MC P300 high') dispense_techniques='MC P300 high')
elif operation == 'move_labware': elif operation == 'move_labware':
handler.move_biomek(source=parameters['source'], handler.move_biomek(source=parameters['source'],
target=parameters['target']) target=parameters['target'])
elif operation == 'oscillation': elif operation == 'oscillation':
handler.oscillation_biomek(rpm=parameters['rpm'], handler.oscillation_biomek(rpm=parameters['rpm'],
time=parameters['time']) time=parameters['time'])
elif operation == 'incubation': elif operation == 'incubation':
handler.incubation_biomek(time=parameters['time']) handler.incubation_biomek(time=parameters['time'])
print(json.dumps(handler.temp_protocol, indent=4)) print(json.dumps(handler.temp_protocol, indent=4))