biomek_test.py

biomek_test.py是最新的版本,运行它会生成complete_biomek_protocol.json
This commit is contained in:
qxw138
2025-06-06 22:42:06 +08:00
parent 1b9f3c666d
commit 6573c9e02e
3 changed files with 4119 additions and 215 deletions

View File

@@ -688,133 +688,102 @@ if __name__ == "__main__":
labware_with_liquid = '''
[ {
"id": "stock plate on P1",
"parent": "deck",
"slot_on_deck": "P1",
"class_name": "nest_12_reservoir_15ml",
"liquid_type": [
"master_mix"
],
"liquid_volume": [10000],
"liquid_input_wells": [
"A1"
]
},
{
"id": "Tip Rack BC230 TL2",
"parent": "deck",
"slot_on_deck": "TL2",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
},
[
{
"id": "Tip Rack BC230 TL2",
"id": "Tip Rack BC230 on TL1",
"parent": "deck",
"slot_on_deck": "TL1",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": []
},
{
"id": "Tip Rack BC230 on TL2",
"parent": "deck",
"slot_on_deck": "TL2",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
{
"id": "Tip Rack BC230 on TL3",
"parent": "deck",
"slot_on_deck": "TL3",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
{
"id": "Tip Rack BC230 on TL4",
"parent": "deck",
"slot_on_deck": "TL4",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
{
"id": "Tip Rack BC230 on TL5",
"parent": "deck",
"slot_on_deck": "TL5",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
{
"id": "Tip Rack BC230 on P5",
"parent": "deck",
"slot_on_deck": "P5",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
{
"id": "Tip Rack BC230 on P6",
"parent": "deck",
"slot_on_deck": "P6",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
},
{
"id": "Tip Rack BC230 on P7",
"parent": "deck",
"slot_on_deck": "P7",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
"id": "Tip Rack BC230 on P8",
"id": "Tip Rack BC230 on P15",
"parent": "deck",
"slot_on_deck": "P8",
"slot_on_deck": "P15",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
"id": "Tip Rack BC230 P16",
{
"id": "Tip Rack BC230 on P16",
"parent": "deck",
"slot_on_deck": "P16",
"class_name": "BC230",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
"id": "stock plate on 4",
"id": "stock plate on P1",
"parent": "deck",
"slot_on_deck": "P2",
"slot_on_deck": "P1",
"class_name": "nest_12_reservoir_15ml",
"liquid_type": [
"bind beads"
"master_mix"
],
"liquid_volume": [10000],
"liquid_input_wells": [
"A1"
]
},
{
{
"id": "stock plate on P2",
"parent": "deck",
"slot_on_deck": "P2",
@@ -827,7 +796,7 @@ labware_with_liquid = '''
"A1"
]
},
{
{
"id": "stock plate on P3",
"parent": "deck",
"slot_on_deck": "P3",
@@ -840,62 +809,65 @@ labware_with_liquid = '''
"A1"
]
},
{
{
"id": "elution buffer on P4",
"parent": "deck",
"slot_on_deck": "P4",
"class_name": "nest_12_reservoir_15ml",
"liquid_type": [
"elution buffer"
],
"liquid_volume": [5000],
"liquid_input_wells": [
"A1"
]
},
{
"id": "oscillation",
"parent": "deck",
"slot_on_deck": "Orbital1",
"class_name": "Orbital",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
{
"id": "working plate on P11",
"parent": "deck",
"slot_on_deck": "P11",
"class_name": "NEST 2ml Deep Well Plate",
"liquid_type": [
],
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
{
"id": "magnetics module on P12",
"parent": "deck",
"slot_on_deck": "P12",
"class_name": "magnetics module",
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
{
"id": "working plate on P13",
"parent": "deck",
"slot_on_deck": "P13",
"class_name": "NEST 2ml Deep Well Plate",
"liquid_type": [
],
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
},
{
{
"id": "waste on P22",
"parent": "deck",
"slot_on_deck": "P22",
"class_name": "nest_1_reservoir_195ml",
"liquid_type": [
],
"liquid_type": [],
"liquid_volume": [],
"liquid_input_wells": [
]
"liquid_input_wells": []
}
]
'''