mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-08 07:55:12 +00:00
Compare commits
208 Commits
v0.9.7
...
042ec2ee01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
042ec2ee01 | ||
|
|
e564d26090 | ||
|
|
771540b88c | ||
|
|
622edbde1e | ||
|
|
afc095f22c | ||
|
|
cbe04a0b09 | ||
|
|
f6f9244ff1 | ||
|
|
ac88c59b50 | ||
|
|
2492af57c0 | ||
|
|
b1dae6da17 | ||
|
|
af812d630a | ||
|
|
183579fd7f | ||
|
|
678ace6109 | ||
|
|
18c4eb3e4d | ||
|
|
dd7abe987e | ||
|
|
3e6c8d6340 | ||
|
|
ab7f1539af | ||
|
|
ee918a0e93 | ||
|
|
6fd95fdb08 | ||
|
|
31993594e6 | ||
|
|
6c471553c4 | ||
|
|
e193bc493c | ||
|
|
9f8f6e55c4 | ||
|
|
8d56c523bb | ||
|
|
57cb120c8c | ||
|
|
a303bd7c5b | ||
|
|
47e58e13c7 | ||
|
|
5b9e13555c | ||
|
|
7b04f3fa50 | ||
|
|
f7db8d17c5 | ||
|
|
ff6998501e | ||
|
|
a354965f8e | ||
|
|
934276d2f7 | ||
|
|
803809480b | ||
|
|
b875f86bbb | ||
|
|
d058de3702 | ||
|
|
6385065ba3 | ||
|
|
3b32dcf066 | ||
|
|
7c714721db | ||
|
|
5478ba3237 | ||
|
|
49f1aa9c28 | ||
|
|
d5d516f0ef | ||
|
|
4471fed4b8 | ||
|
|
30d143e1a5 | ||
|
|
75ea45f21e | ||
|
|
66af337d6c | ||
|
|
ae3c65c1d3 | ||
|
|
11e4f053f1 | ||
|
|
96f37b3b0d | ||
|
|
d7d0a27976 | ||
|
|
34151f5cb2 | ||
|
|
369a21b904 | ||
|
|
90169981c1 | ||
|
|
d297abfd19 | ||
|
|
9c515a252a | ||
|
|
ea5e7a5ce2 | ||
|
|
2e9a0a4677 | ||
|
|
4c7aa8a89a | ||
|
|
d8a0c5e715 | ||
|
|
133ffaac17 | ||
|
|
729a0fcf0c | ||
|
|
6ae77e0408 | ||
|
|
bab4b1d67a | ||
|
|
12c17ec26e | ||
|
|
6577fe12eb | ||
|
|
f1fee5fad9 | ||
|
|
9b3377aedb | ||
|
|
526327727d | ||
|
|
aaa86314e3 | ||
|
|
6a14104e6b | ||
|
|
ab0c4b708b | ||
|
|
c0b7f2decd | ||
|
|
b6c9530c61 | ||
|
|
8698821c52 | ||
|
|
3f53f88390 | ||
|
|
e840516ba4 | ||
|
|
146d8c5296 | ||
|
|
6573c9e02e | ||
|
|
c7b9c6a825 | ||
|
|
48c43d3303 | ||
|
|
55be5e8188 | ||
|
|
1b9f3c666d | ||
|
|
097114d38c | ||
|
|
5bec899479 | ||
|
|
5e86112ebf | ||
|
|
24ecb13b79 | ||
|
|
2573d34713 | ||
|
|
106d71e1db | ||
|
|
3c2a4a64ac | ||
|
|
1e00a66a65 | ||
|
|
46da42deef | ||
|
|
101c1bc3cc | ||
|
|
a62112ae26 | ||
|
|
dd5a7cab75 | ||
|
|
39de3ac58e | ||
|
|
b99969278c | ||
|
|
b957ad2f71 | ||
|
|
e1a7c3a103 | ||
|
|
e63c15997c | ||
|
|
c5a495f409 | ||
|
|
5b240cb0ea | ||
|
|
147b8f47c0 | ||
|
|
6d2489af5f | ||
|
|
807dcdd226 | ||
|
|
8a29bc5597 | ||
|
|
6f6c70ee57 | ||
|
|
478a85951c | ||
|
|
0f2555c90c | ||
|
|
d2dda6ee03 | ||
|
|
208540b307 | ||
|
|
cb7c56a1d9 | ||
|
|
ea2e9c3e3a | ||
|
|
0452a68180 | ||
|
|
90a0f3db9b | ||
|
|
055d120ba8 | ||
|
|
a948f09f60 | ||
|
|
c2c2c2f020 | ||
|
|
4decd9a174 | ||
|
|
83c765f0ab | ||
|
|
3600b6f934 | ||
|
|
f0576e5666 | ||
|
|
8e1dbb56b1 | ||
|
|
013c25f3aa | ||
|
|
3d71c8bc78 | ||
|
|
42f0994147 | ||
|
|
4223f9b72c | ||
|
|
bec58e1301 | ||
|
|
6f9773157c | ||
|
|
da50e435c1 | ||
|
|
34e03bbd6e | ||
|
|
ad5168c3eb | ||
|
|
2dde5b6aae | ||
|
|
45a73e2f6d | ||
|
|
fbff27a52d | ||
|
|
1b190ee62f | ||
|
|
83abf877b5 | ||
|
|
f3637d4043 | ||
|
|
c12c2a876c | ||
|
|
6cdd8c18e8 | ||
|
|
3d60cb36b8 | ||
|
|
5df304bc64 | ||
|
|
6d5ada06de | ||
|
|
aad23596b6 | ||
|
|
b43f2321cd | ||
|
|
8617b1284f | ||
|
|
cd1e9a9f7d | ||
|
|
3d607db49a | ||
|
|
3dc62e3e99 | ||
|
|
d199fda9a5 | ||
|
|
ed2858a610 | ||
|
|
de28c50d8b | ||
|
|
e373220ce3 | ||
|
|
b6a3f17e9b | ||
|
|
49a9f05c51 | ||
|
|
32e370a562 | ||
|
|
852d10d751 | ||
|
|
b47f67d129 | ||
|
|
194985222e | ||
|
|
948f590b47 | ||
|
|
164417e1cf | ||
|
|
1a107cfd18 | ||
|
|
65d0cbe28a | ||
|
|
3c98c77cab | ||
|
|
d6b8104824 | ||
|
|
1223e05dcc | ||
|
|
a52133b7d0 | ||
|
|
80380d1f4b | ||
|
|
5668310401 | ||
|
|
78239ab1a3 | ||
|
|
fa5db06347 | ||
|
|
2b428080e7 | ||
|
|
9eb271f64e | ||
|
|
752442cb37 | ||
|
|
9d2bfec1dd | ||
|
|
5212d2d8eb | ||
|
|
44c191fe90 | ||
|
|
7a51b2adc1 | ||
|
|
2d034f728a | ||
|
|
8ab108c489 | ||
|
|
4dbb6649b4 | ||
|
|
dc197bffe8 | ||
|
|
49bb11b2a3 | ||
|
|
d407423aaa | ||
|
|
111c3f42e4 | ||
|
|
2990e70c25 | ||
|
|
0d24606d46 | ||
|
|
2baa232b86 | ||
|
|
b7a16cdfc8 | ||
|
|
8921bcd9fb | ||
|
|
5038219fe6 | ||
|
|
0d2f1be37a | ||
|
|
6b649bfdec | ||
|
|
ba6a43c594 | ||
|
|
ea6f25d1ce | ||
|
|
e5749a8058 | ||
|
|
09fc17429e | ||
|
|
bdf97be256 | ||
|
|
dbd1557095 | ||
|
|
ff8b75bf1f | ||
|
|
bed9720de3 | ||
|
|
1e01eae896 | ||
|
|
6155ec2798 | ||
|
|
279c5ed519 | ||
|
|
5b4f580a6f | ||
|
|
e971424220 | ||
|
|
82881f5882 | ||
|
|
bb1cac0dbd | ||
|
|
275e3a36f7 |
@@ -148,7 +148,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "CleanVesselProtocolTestStation",
|
"parent": "CleanVesselProtocolTestStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": null,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 50,
|
"x": 50,
|
||||||
"y": 500,
|
"y": 500,
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "CleanVesselProtocolTestStation",
|
"parent": "CleanVesselProtocolTestStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": null,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 150,
|
"x": 150,
|
||||||
"y": 500,
|
"y": 500,
|
||||||
@@ -196,7 +196,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "CleanVesselProtocolTestStation",
|
"parent": "CleanVesselProtocolTestStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": null,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 250,
|
"x": 250,
|
||||||
"y": 500,
|
"y": 500,
|
||||||
@@ -220,7 +220,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "CleanVesselProtocolTestStation",
|
"parent": "CleanVesselProtocolTestStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": null,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 350,
|
"x": 350,
|
||||||
"y": 500,
|
"y": 500,
|
||||||
@@ -239,7 +239,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "CleanVesselProtocolTestStation",
|
"parent": "CleanVesselProtocolTestStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": null,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 600,
|
"x": 600,
|
||||||
"y": 450,
|
"y": 450,
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "CleanVesselProtocolTestStation",
|
"parent": "CleanVesselProtocolTestStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": null,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 800,
|
"x": 800,
|
||||||
"y": 450,
|
"y": 450,
|
||||||
@@ -287,7 +287,7 @@
|
|||||||
"children": [],
|
"children": [],
|
||||||
"parent": "CleanVesselProtocolTestStation",
|
"parent": "CleanVesselProtocolTestStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": null,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 700,
|
"x": 700,
|
||||||
"y": 550,
|
"y": 550,
|
||||||
@@ -301,9 +301,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"id": "link_pump1_to_valve1",
|
"id": "link_pump1_valve1",
|
||||||
"source": "transfer_pump_1",
|
"source": "transfer_pump_1",
|
||||||
"target": "multiway_valve_1",
|
"target": "multiway_valve_1",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
@@ -313,7 +313,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_pump2_to_valve2",
|
"id": "link_pump2_valve2",
|
||||||
"source": "transfer_pump_2",
|
"source": "transfer_pump_2",
|
||||||
"target": "multiway_valve_2",
|
"target": "multiway_valve_2",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
@@ -323,123 +323,103 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_valve1_to_water",
|
"id": "link_valve1_air",
|
||||||
|
"source": "multiway_valve_1",
|
||||||
|
"target": "flask_air",
|
||||||
|
"type": "fluid",
|
||||||
|
"port": {
|
||||||
|
"multiway_valve_1": "1",
|
||||||
|
"flask_air": "top"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "link_valve1_water",
|
||||||
"source": "multiway_valve_1",
|
"source": "multiway_valve_1",
|
||||||
"target": "flask_water",
|
"target": "flask_water",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_1": "2",
|
"multiway_valve_1": "2",
|
||||||
"flask_water": "top"
|
"flask_water": "outlet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_valve1_to_acetone",
|
"id": "link_valve1_acetone",
|
||||||
"source": "multiway_valve_1",
|
"source": "multiway_valve_1",
|
||||||
"target": "flask_acetone",
|
"target": "flask_acetone",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_1": "3",
|
"multiway_valve_1": "3",
|
||||||
"flask_acetone": "top"
|
"flask_acetone": "outlet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_valve1_to_ethanol",
|
"id": "link_valve1_ethanol",
|
||||||
"source": "multiway_valve_1",
|
"source": "multiway_valve_1",
|
||||||
"target": "flask_ethanol",
|
"target": "flask_ethanol",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_1": "4",
|
"multiway_valve_1": "4",
|
||||||
"flask_ethanol": "top"
|
"flask_ethanol": "outlet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_valve1_to_air",
|
"id": "link_valve1_valve2",
|
||||||
"source": "multiway_valve_1",
|
|
||||||
"target": "flask_air",
|
|
||||||
"type": "fluid",
|
|
||||||
"port": {
|
|
||||||
"multiway_valve_1": "6",
|
|
||||||
"flask_air": "top"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "link_valve1_to_valve2_for_cleaning",
|
|
||||||
"source": "multiway_valve_1",
|
"source": "multiway_valve_1",
|
||||||
"target": "multiway_valve_2",
|
"target": "multiway_valve_2",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_1": "1",
|
"multiway_valve_1": "5",
|
||||||
"multiway_valve_2": "8"
|
"multiway_valve_2": "1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_valve2_to_main_reactor_in",
|
"id": "link_valve2_main_reactor",
|
||||||
"source": "multiway_valve_2",
|
"source": "multiway_valve_2",
|
||||||
"target": "main_reactor",
|
"target": "main_reactor",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_2": "2",
|
"multiway_valve_2": "2",
|
||||||
"main_reactor": "top"
|
"main_reactor": "inlet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_valve2_to_secondary_reactor_in",
|
"id": "link_valve2_secondary_reactor",
|
||||||
"source": "multiway_valve_2",
|
"source": "multiway_valve_2",
|
||||||
"target": "secondary_reactor",
|
"target": "secondary_reactor",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_2": "3",
|
"multiway_valve_2": "3",
|
||||||
"secondary_reactor": "top"
|
"secondary_reactor": "inlet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_main_reactor_out_to_valve2",
|
"id": "link_valve2_waste",
|
||||||
"source": "main_reactor",
|
|
||||||
"target": "multiway_valve_2",
|
|
||||||
"type": "fluid",
|
|
||||||
"port": {
|
|
||||||
"main_reactor": "bottom",
|
|
||||||
"multiway_valve_2": "6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "link_secondary_reactor_out_to_valve2",
|
|
||||||
"source": "secondary_reactor",
|
|
||||||
"target": "multiway_valve_2",
|
|
||||||
"type": "fluid",
|
|
||||||
"port": {
|
|
||||||
"secondary_reactor": "bottom",
|
|
||||||
"multiway_valve_2": "7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "link_valve2_to_waste",
|
|
||||||
"source": "multiway_valve_2",
|
"source": "multiway_valve_2",
|
||||||
"target": "waste_workup",
|
"target": "waste_workup",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_2": "4",
|
"multiway_valve_2": "4",
|
||||||
"waste_workup": "top"
|
"waste_workup": "inlet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_heatchill1_to_main_reactor",
|
"id": "link_valve2_air_return",
|
||||||
|
"source": "multiway_valve_2",
|
||||||
|
"target": "flask_air",
|
||||||
|
"type": "fluid",
|
||||||
|
"port": {
|
||||||
|
"multiway_valve_2": "5",
|
||||||
|
"flask_air": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "link_heatchill1_main_reactor",
|
||||||
"source": "heatchill_1",
|
"source": "heatchill_1",
|
||||||
"target": "main_reactor",
|
"target": "main_reactor",
|
||||||
"type": "mechanical",
|
"type": "mechanical",
|
||||||
"port": {
|
"port": {
|
||||||
"heatchill_1": "heatchill",
|
"heatchill_1": "heatchill",
|
||||||
"main_reactor": "bind"
|
"main_reactor": "heating_jacket"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "link_heatchill1_to_secondary_reactor",
|
|
||||||
"source": "heatchill_1",
|
|
||||||
"target": "secondary_reactor",
|
|
||||||
"type": "mechanical",
|
|
||||||
"port": {
|
|
||||||
"heatchill_1": "heatchill",
|
|
||||||
"secondary_reactor": "bind"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"id": "OrganicSynthesisStation",
|
"id": "ComprehensiveProtocolStation",
|
||||||
"name": "有机化学流程综合测试工作站",
|
"name": "综合协议测试工作站",
|
||||||
"children": [
|
"children": [
|
||||||
"multiway_valve_1",
|
"multiway_valve_1",
|
||||||
"multiway_valve_2",
|
"multiway_valve_2",
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
"id": "multiway_valve_1",
|
"id": "multiway_valve_1",
|
||||||
"name": "八通阀门1",
|
"name": "八通阀门1",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_multiway_valve",
|
"class": "virtual_multiway_valve",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
"id": "multiway_valve_2",
|
"id": "multiway_valve_2",
|
||||||
"name": "八通阀门2",
|
"name": "八通阀门2",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_multiway_valve",
|
"class": "virtual_multiway_valve",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
"id": "transfer_pump_1",
|
"id": "transfer_pump_1",
|
||||||
"name": "转移泵1",
|
"name": "转移泵1",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_transfer_pump",
|
"class": "virtual_transfer_pump",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
"id": "transfer_pump_2",
|
"id": "transfer_pump_2",
|
||||||
"name": "转移泵2",
|
"name": "转移泵2",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_transfer_pump",
|
"class": "virtual_transfer_pump",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
"id": "reagent_bottle_1",
|
"id": "reagent_bottle_1",
|
||||||
"name": "试剂瓶1-DMF",
|
"name": "试剂瓶1-DMF",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
"id": "reagent_bottle_2",
|
"id": "reagent_bottle_2",
|
||||||
"name": "试剂瓶2-乙酸乙酯",
|
"name": "试剂瓶2-乙酸乙酯",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
"id": "reagent_bottle_3",
|
"id": "reagent_bottle_3",
|
||||||
"name": "试剂瓶3-己烷",
|
"name": "试剂瓶3-己烷",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
"id": "reagent_bottle_4",
|
"id": "reagent_bottle_4",
|
||||||
"name": "试剂瓶4-甲醇",
|
"name": "试剂瓶4-甲醇",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
"id": "reagent_bottle_5",
|
"id": "reagent_bottle_5",
|
||||||
"name": "试剂瓶5-水",
|
"name": "试剂瓶5-水",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -256,7 +256,7 @@
|
|||||||
"id": "centrifuge_1",
|
"id": "centrifuge_1",
|
||||||
"name": "离心机",
|
"name": "离心机",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_centrifuge",
|
"class": "virtual_centrifuge",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -278,7 +278,7 @@
|
|||||||
"id": "rotavap_1",
|
"id": "rotavap_1",
|
||||||
"name": "旋转蒸发仪",
|
"name": "旋转蒸发仪",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_rotavap",
|
"class": "virtual_rotavap",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -300,7 +300,7 @@
|
|||||||
"id": "main_reactor",
|
"id": "main_reactor",
|
||||||
"name": "主反应器",
|
"name": "主反应器",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -324,7 +324,7 @@
|
|||||||
"id": "heater_1",
|
"id": "heater_1",
|
||||||
"name": "加热器",
|
"name": "加热器",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_heatchill",
|
"class": "virtual_heatchill",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -345,7 +345,7 @@
|
|||||||
"id": "stirrer_1",
|
"id": "stirrer_1",
|
||||||
"name": "搅拌器1",
|
"name": "搅拌器1",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_stirrer",
|
"class": "virtual_stirrer",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -361,11 +361,11 @@
|
|||||||
"current_speed": 0.0
|
"current_speed": 0.0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "stirrer_2",
|
"id": "stirrer_2",
|
||||||
"name": "搅拌器2",
|
"name": "搅拌器2",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_stirrer",
|
"class": "virtual_stirrer",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -385,7 +385,7 @@
|
|||||||
"id": "waste_bottle_1",
|
"id": "waste_bottle_1",
|
||||||
"name": "废液瓶1",
|
"name": "废液瓶1",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -404,7 +404,7 @@
|
|||||||
"id": "waste_bottle_2",
|
"id": "waste_bottle_2",
|
||||||
"name": "废液瓶2",
|
"name": "废液瓶2",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -423,7 +423,7 @@
|
|||||||
"id": "solenoid_valve_1",
|
"id": "solenoid_valve_1",
|
||||||
"name": "电磁阀1",
|
"name": "电磁阀1",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_solenoid_valve",
|
"class": "virtual_solenoid_valve",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -444,7 +444,7 @@
|
|||||||
"id": "solenoid_valve_2",
|
"id": "solenoid_valve_2",
|
||||||
"name": "电磁阀2",
|
"name": "电磁阀2",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_solenoid_valve",
|
"class": "virtual_solenoid_valve",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -465,7 +465,7 @@
|
|||||||
"id": "vacuum_pump_1",
|
"id": "vacuum_pump_1",
|
||||||
"name": "真空泵",
|
"name": "真空泵",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_vacuum_pump",
|
"class": "virtual_vacuum_pump",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -486,7 +486,7 @@
|
|||||||
"id": "gas_source_1",
|
"id": "gas_source_1",
|
||||||
"name": "气源",
|
"name": "气源",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_gas_source",
|
"class": "virtual_gas_source",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -504,7 +504,7 @@
|
|||||||
"id": "filter_1",
|
"id": "filter_1",
|
||||||
"name": "过滤器",
|
"name": "过滤器",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_filter",
|
"class": "virtual_filter",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -525,7 +525,7 @@
|
|||||||
"id": "column_1",
|
"id": "column_1",
|
||||||
"name": "洗脱柱",
|
"name": "洗脱柱",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_column",
|
"class": "virtual_column",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -547,7 +547,7 @@
|
|||||||
"id": "separator_1",
|
"id": "separator_1",
|
||||||
"name": "分液器",
|
"name": "分液器",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "device",
|
"type": "device",
|
||||||
"class": "virtual_separator",
|
"class": "virtual_separator",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -568,7 +568,7 @@
|
|||||||
"id": "collection_bottle_1",
|
"id": "collection_bottle_1",
|
||||||
"name": "接收瓶1",
|
"name": "接收瓶1",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -587,7 +587,7 @@
|
|||||||
"id": "collection_bottle_2",
|
"id": "collection_bottle_2",
|
||||||
"name": "接收瓶2",
|
"name": "接收瓶2",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -606,7 +606,7 @@
|
|||||||
"id": "collection_bottle_3",
|
"id": "collection_bottle_3",
|
||||||
"name": "接收瓶3",
|
"name": "接收瓶3",
|
||||||
"children": [],
|
"children": [],
|
||||||
"parent": "OrganicSynthesisStation",
|
"parent": "ComprehensiveProtocolStation",
|
||||||
"type": "container",
|
"type": "container",
|
||||||
"class": "container",
|
"class": "container",
|
||||||
"position": {
|
"position": {
|
||||||
@@ -624,13 +624,13 @@
|
|||||||
],
|
],
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"id": "link_pump1_valve1",
|
"id": "link_valve1_pump1",
|
||||||
"source": "transfer_pump_1",
|
"source": "multiway_valve_1",
|
||||||
"target": "multiway_valve_1",
|
"target": "transfer_pump_1",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"transfer_pump_1": "transferpump",
|
"multiway_valve_1": "transferpump",
|
||||||
"multiway_valve_1": "transferpump"
|
"transfer_pump_1": "transferpump"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -667,7 +667,7 @@
|
|||||||
"id": "link_valve1_centrifuge",
|
"id": "link_valve1_centrifuge",
|
||||||
"source": "multiway_valve_1",
|
"source": "multiway_valve_1",
|
||||||
"target": "centrifuge_1",
|
"target": "centrifuge_1",
|
||||||
"type": "transport",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_1": "4",
|
"multiway_valve_1": "4",
|
||||||
"centrifuge_1": "centrifuge"
|
"centrifuge_1": "centrifuge"
|
||||||
@@ -680,7 +680,7 @@
|
|||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_1": "5",
|
"multiway_valve_1": "5",
|
||||||
"rotavap_1": "sample_in"
|
"rotavap_1": "rotavap-sample"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -714,13 +714,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_pump2_valve2",
|
"id": "link_valve2_pump2",
|
||||||
"source": "transfer_pump_2",
|
"source": "multiway_valve_2",
|
||||||
"target": "multiway_valve_2",
|
"target": "transfer_pump_2",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"transfer_pump_2": "transferpump",
|
"multiway_valve_2": "transferpump",
|
||||||
"multiway_valve_2": "transferpump"
|
"transfer_pump_2": "transferpump"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -734,13 +734,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_vacuum_solenoid1",
|
"id": "link_solenoid1_vacuum",
|
||||||
"source": "vacuum_pump_1",
|
"source": "solenoid_valve_1",
|
||||||
"target": "solenoid_valve_1",
|
"target": "vacuum_pump_1",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"vacuum_pump_1": "vacuumpump",
|
"solenoid_valve_1": "out",
|
||||||
"solenoid_valve_1": "out"
|
"vacuum_pump_1": "vacuumpump"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -754,30 +754,40 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_gas_solenoid2",
|
"id": "link_solenoid2_gas",
|
||||||
"source": "gas_source_1",
|
"source": "solenoid_valve_2",
|
||||||
"target": "solenoid_valve_2",
|
"target": "gas_source_1",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"gas_source_1": "gassource",
|
"solenoid_valve_2": "out",
|
||||||
"solenoid_valve_2": "out"
|
"gas_source_1": "gassource"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_valve2_filter",
|
"id": "link_valve2_filter",
|
||||||
"source": "multiway_valve_2",
|
"source": "multiway_valve_2",
|
||||||
"target": "filter_1",
|
"target": "filter_1",
|
||||||
"type": "transport",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_2": "4",
|
"multiway_valve_2": "4",
|
||||||
"filter_1": "filter_in"
|
"filter_1": "filterin"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "link_filter_collection1",
|
||||||
|
"source": "filter_1",
|
||||||
|
"target": "collection_bottle_1",
|
||||||
|
"type": "fluid",
|
||||||
|
"port": {
|
||||||
|
"filter_1": "filtrate_out",
|
||||||
|
"collection_bottle_1": "top"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "link_valve2_column",
|
"id": "link_valve2_column",
|
||||||
"source": "multiway_valve_2",
|
"source": "multiway_valve_2",
|
||||||
"target": "column_1",
|
"target": "column_1",
|
||||||
"type": "transport",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_2": "5",
|
"multiway_valve_2": "5",
|
||||||
"column_1": "columnin"
|
"column_1": "columnin"
|
||||||
@@ -787,7 +797,7 @@
|
|||||||
"id": "link_column_collection2",
|
"id": "link_column_collection2",
|
||||||
"source": "column_1",
|
"source": "column_1",
|
||||||
"target": "collection_bottle_2",
|
"target": "collection_bottle_2",
|
||||||
"type": "transport",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"column_1": "columnout",
|
"column_1": "columnout",
|
||||||
"collection_bottle_2": "top"
|
"collection_bottle_2": "top"
|
||||||
@@ -800,7 +810,7 @@
|
|||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"multiway_valve_2": "6",
|
"multiway_valve_2": "6",
|
||||||
"separator_1": "separator_in"
|
"separator_1": "separatorin"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -809,10 +819,30 @@
|
|||||||
"target": "collection_bottle_3",
|
"target": "collection_bottle_3",
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"separator_1": "bottom_phase_out",
|
"separator_1": "separatorout",
|
||||||
"collection_bottle_3": "top"
|
"collection_bottle_3": "top"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "link_separator_stirrer_2",
|
||||||
|
"source": "separator_1",
|
||||||
|
"target": "stirrer_2",
|
||||||
|
"type": "fluid",
|
||||||
|
"port": {
|
||||||
|
"separator_1": "separatorout",
|
||||||
|
"stirrer_2": "stirrer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "link_separator_waste2",
|
||||||
|
"source": "separator_1",
|
||||||
|
"target": "waste_bottle_2",
|
||||||
|
"type": "fluid",
|
||||||
|
"port": {
|
||||||
|
"separator_1": "separatorout",
|
||||||
|
"waste_bottle_2": "top"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "link_valve2_reagent4",
|
"id": "link_valve2_reagent4",
|
||||||
"source": "multiway_valve_2",
|
"source": "multiway_valve_2",
|
||||||
@@ -837,60 +867,20 @@
|
|||||||
"id": "mech_stirrer_reactor",
|
"id": "mech_stirrer_reactor",
|
||||||
"source": "stirrer_1",
|
"source": "stirrer_1",
|
||||||
"target": "main_reactor",
|
"target": "main_reactor",
|
||||||
"type": "mechanical",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"stirrer_1": "stirrer",
|
"stirrer_1": "stirrer",
|
||||||
"main_reactor": "bind"
|
"main_reactor": "top"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "thermal_heater_reactor",
|
"id": "thermal_heater_reactor",
|
||||||
"source": "heater_1",
|
"source": "heater_1",
|
||||||
"target": "main_reactor",
|
"target": "main_reactor",
|
||||||
"type": "mechanical",
|
|
||||||
"port": {
|
|
||||||
"heater_1": "heatchill",
|
|
||||||
"main_reactor": "bind"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "link_separator_waste2",
|
|
||||||
"source": "separator_1",
|
|
||||||
"target": "waste_bottle_2",
|
|
||||||
"type": "fluid",
|
"type": "fluid",
|
||||||
"port": {
|
"port": {
|
||||||
"separator_1": "top_phase_out",
|
"heater_1": "heatchill",
|
||||||
"waste_bottle_2": "top"
|
"main_reactor": "bottom"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "mech_stirrer2_separator",
|
|
||||||
"source": "stirrer_2",
|
|
||||||
"target": "separator_1",
|
|
||||||
"type": "mechanical",
|
|
||||||
"port": {
|
|
||||||
"stirrer_2": "stirrer",
|
|
||||||
"separator_1": "bind"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "link_filter_filtrate_to_collection1",
|
|
||||||
"source": "filter_1",
|
|
||||||
"target": "collection_bottle_1",
|
|
||||||
"type": "transport",
|
|
||||||
"port": {
|
|
||||||
"filter_1": "filtrate_out",
|
|
||||||
"collection_bottle_1": "top"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "link_filter_retentate_to_waste1",
|
|
||||||
"source": "filter_1",
|
|
||||||
"target": "waste_bottle_1",
|
|
||||||
"type": "transport",
|
|
||||||
"port": {
|
|
||||||
"filter_1": "retentate_out",
|
|
||||||
"waste_bottle_1": "top"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -25,25 +25,26 @@ from .wash_solid_protocol import generate_wash_solid_protocol
|
|||||||
|
|
||||||
# Define a dictionary of protocol generators.
|
# Define a dictionary of protocol generators.
|
||||||
action_protocol_generators = {
|
action_protocol_generators = {
|
||||||
AddProtocol: generate_add_protocol,
|
PumpTransferProtocol: generate_pump_protocol_with_rinsing,
|
||||||
|
CleanProtocol: generate_clean_protocol,
|
||||||
|
SeparateProtocol: generate_separate_protocol,
|
||||||
|
EvaporateProtocol: generate_evaporate_protocol,
|
||||||
|
EvacuateAndRefillProtocol: generate_evacuateandrefill_protocol,
|
||||||
AGVTransferProtocol: generate_agv_transfer_protocol,
|
AGVTransferProtocol: generate_agv_transfer_protocol,
|
||||||
CentrifugeProtocol: generate_centrifuge_protocol,
|
CentrifugeProtocol: generate_centrifuge_protocol,
|
||||||
CleanProtocol: generate_clean_protocol,
|
AddProtocol: generate_add_protocol,
|
||||||
CleanVesselProtocol: generate_clean_vessel_protocol,
|
|
||||||
DissolveProtocol: generate_dissolve_protocol,
|
|
||||||
EvacuateAndRefillProtocol: generate_evacuateandrefill_protocol,
|
|
||||||
EvaporateProtocol: generate_evaporate_protocol,
|
|
||||||
FilterProtocol: generate_filter_protocol,
|
FilterProtocol: generate_filter_protocol,
|
||||||
FilterThroughProtocol: generate_filter_through_protocol,
|
|
||||||
HeatChillProtocol: generate_heat_chill_protocol,
|
HeatChillProtocol: generate_heat_chill_protocol,
|
||||||
HeatChillStartProtocol: generate_heat_chill_start_protocol,
|
HeatChillStartProtocol: generate_heat_chill_start_protocol,
|
||||||
HeatChillStopProtocol: generate_heat_chill_stop_protocol,
|
HeatChillStopProtocol: generate_heat_chill_stop_protocol,
|
||||||
PumpTransferProtocol: generate_pump_protocol_with_rinsing,
|
# HeatChillToTempProtocol: generate_heat_chill_to_temp_protocol, # **移除这行**
|
||||||
RunColumnProtocol: generate_run_column_protocol,
|
|
||||||
SeparateProtocol: generate_separate_protocol,
|
|
||||||
StartStirProtocol: generate_start_stir_protocol,
|
|
||||||
StirProtocol: generate_stir_protocol,
|
StirProtocol: generate_stir_protocol,
|
||||||
|
StartStirProtocol: generate_start_stir_protocol,
|
||||||
StopStirProtocol: generate_stop_stir_protocol,
|
StopStirProtocol: generate_stop_stir_protocol,
|
||||||
TransferProtocol: generate_transfer_protocol,
|
TransferProtocol: generate_transfer_protocol,
|
||||||
|
CleanVesselProtocol: generate_clean_vessel_protocol,
|
||||||
|
DissolveProtocol: generate_dissolve_protocol,
|
||||||
|
FilterThroughProtocol: generate_filter_through_protocol,
|
||||||
|
RunColumnProtocol: generate_run_column_protocol,
|
||||||
WashSolidProtocol: generate_wash_solid_protocol,
|
WashSolidProtocol: generate_wash_solid_protocol,
|
||||||
}
|
}
|
||||||
@@ -5,10 +5,7 @@ from .pump_protocol import generate_pump_protocol_with_rinsing
|
|||||||
|
|
||||||
def find_reagent_vessel(G: nx.DiGraph, reagent: str) -> str:
|
def find_reagent_vessel(G: nx.DiGraph, reagent: str) -> str:
|
||||||
"""
|
"""
|
||||||
根据试剂名称查找对应的试剂瓶,支持多种匹配模式:
|
根据试剂名称查找对应的试剂瓶
|
||||||
1. 容器名称匹配(如 flask_DMF, reagent_bottle_1-DMF)
|
|
||||||
2. 容器内液体类型匹配(如 liquid_type: "DMF", name: "ethanol")
|
|
||||||
3. 试剂名称匹配(如 reagent_name: "DMF", config.reagent: "ethyl_acetate")
|
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
G: 网络图
|
G: 网络图
|
||||||
@@ -20,184 +17,23 @@ def find_reagent_vessel(G: nx.DiGraph, reagent: str) -> str:
|
|||||||
Raises:
|
Raises:
|
||||||
ValueError: 如果找不到对应的试剂瓶
|
ValueError: 如果找不到对应的试剂瓶
|
||||||
"""
|
"""
|
||||||
print(f"ADD_PROTOCOL: 正在查找试剂 '{reagent}' 的容器...")
|
# 按照pump_protocol的命名规则查找试剂瓶
|
||||||
|
reagent_vessel_id = f"flask_{reagent}"
|
||||||
|
|
||||||
# 第一步:通过容器名称匹配
|
if reagent_vessel_id in G.nodes():
|
||||||
possible_names = [
|
return reagent_vessel_id
|
||||||
f"flask_{reagent}", # flask_DMF, flask_ethanol
|
|
||||||
f"bottle_{reagent}", # bottle_DMF, bottle_ethanol
|
|
||||||
f"vessel_{reagent}", # vessel_DMF, vessel_ethanol
|
|
||||||
f"{reagent}_flask", # DMF_flask, ethanol_flask
|
|
||||||
f"{reagent}_bottle", # DMF_bottle, ethanol_bottle
|
|
||||||
f"{reagent}", # 直接用试剂名
|
|
||||||
f"reagent_{reagent}", # reagent_DMF, reagent_ethanol
|
|
||||||
f"reagent_bottle_{reagent}", # reagent_bottle_DMF
|
|
||||||
]
|
|
||||||
|
|
||||||
# 尝试名称匹配
|
# 如果直接匹配失败,尝试模糊匹配
|
||||||
for vessel_name in possible_names:
|
for node in G.nodes():
|
||||||
if vessel_name in G.nodes():
|
if node.startswith('flask_') and reagent.lower() in node.lower():
|
||||||
print(f"ADD_PROTOCOL: 通过名称匹配找到容器: {vessel_name}")
|
return node
|
||||||
return vessel_name
|
|
||||||
|
|
||||||
# 第二步:通过模糊名称匹配(名称中包含试剂名)
|
# 如果还是找不到,列出所有可用的试剂瓶
|
||||||
for node_id in G.nodes():
|
available_flasks = [node for node in G.nodes()
|
||||||
if G.nodes[node_id].get('type') == 'container':
|
if node.startswith('flask_')
|
||||||
# 检查节点ID或名称中是否包含试剂名
|
and G.nodes[node].get('type') == 'container']
|
||||||
node_name = G.nodes[node_id].get('name', '').lower()
|
|
||||||
if (reagent.lower() in node_id.lower() or
|
|
||||||
reagent.lower() in node_name):
|
|
||||||
print(f"ADD_PROTOCOL: 通过模糊名称匹配找到容器: {node_id} (名称: {node_name})")
|
|
||||||
return node_id
|
|
||||||
|
|
||||||
# 第三步:通过液体类型匹配
|
raise ValueError(f"找不到试剂 '{reagent}' 对应的试剂瓶。可用试剂瓶: {available_flasks}")
|
||||||
for node_id in G.nodes():
|
|
||||||
if G.nodes[node_id].get('type') == 'container':
|
|
||||||
vessel_data = G.nodes[node_id].get('data', {})
|
|
||||||
liquids = vessel_data.get('liquid', [])
|
|
||||||
|
|
||||||
for liquid in liquids:
|
|
||||||
if isinstance(liquid, dict):
|
|
||||||
# 支持两种格式的液体类型字段
|
|
||||||
liquid_type = liquid.get('liquid_type') or liquid.get('name', '')
|
|
||||||
reagent_name = vessel_data.get('reagent_name', '')
|
|
||||||
config_reagent = G.nodes[node_id].get('config', {}).get('reagent', '')
|
|
||||||
|
|
||||||
# 检查多个可能的字段
|
|
||||||
if (liquid_type.lower() == reagent.lower() or
|
|
||||||
reagent_name.lower() == reagent.lower() or
|
|
||||||
config_reagent.lower() == reagent.lower()):
|
|
||||||
print(f"ADD_PROTOCOL: 通过液体类型匹配找到容器: {node_id}")
|
|
||||||
print(f" - liquid_type: {liquid_type}")
|
|
||||||
print(f" - reagent_name: {reagent_name}")
|
|
||||||
print(f" - config.reagent: {config_reagent}")
|
|
||||||
return node_id
|
|
||||||
|
|
||||||
# 第四步:列出所有可用的容器信息帮助调试
|
|
||||||
available_containers = []
|
|
||||||
for node_id in G.nodes():
|
|
||||||
if G.nodes[node_id].get('type') == 'container':
|
|
||||||
vessel_data = G.nodes[node_id].get('data', {})
|
|
||||||
config_data = G.nodes[node_id].get('config', {})
|
|
||||||
liquids = vessel_data.get('liquid', [])
|
|
||||||
|
|
||||||
container_info = {
|
|
||||||
'id': node_id,
|
|
||||||
'name': G.nodes[node_id].get('name', ''),
|
|
||||||
'liquid_types': [],
|
|
||||||
'reagent_name': vessel_data.get('reagent_name', ''),
|
|
||||||
'config_reagent': config_data.get('reagent', '')
|
|
||||||
}
|
|
||||||
|
|
||||||
for liquid in liquids:
|
|
||||||
if isinstance(liquid, dict):
|
|
||||||
liquid_type = liquid.get('liquid_type') or liquid.get('name', '')
|
|
||||||
if liquid_type:
|
|
||||||
container_info['liquid_types'].append(liquid_type)
|
|
||||||
|
|
||||||
available_containers.append(container_info)
|
|
||||||
|
|
||||||
print(f"ADD_PROTOCOL: 可用容器列表:")
|
|
||||||
for container in available_containers:
|
|
||||||
print(f" - {container['id']}: {container['name']}")
|
|
||||||
print(f" 液体类型: {container['liquid_types']}")
|
|
||||||
print(f" 试剂名称: {container['reagent_name']}")
|
|
||||||
print(f" 配置试剂: {container['config_reagent']}")
|
|
||||||
|
|
||||||
raise ValueError(f"找不到试剂 '{reagent}' 对应的试剂瓶。尝试了名称匹配: {possible_names}")
|
|
||||||
|
|
||||||
|
|
||||||
def find_reagent_vessel_by_any_match(G: nx.DiGraph, reagent: str) -> str:
|
|
||||||
"""
|
|
||||||
增强版试剂容器查找,支持各种匹配方式的别名函数
|
|
||||||
"""
|
|
||||||
return find_reagent_vessel(G, reagent)
|
|
||||||
|
|
||||||
|
|
||||||
def get_vessel_reagent_volume(G: nx.DiGraph, vessel: str) -> float:
|
|
||||||
"""获取容器中的试剂体积"""
|
|
||||||
if vessel not in G.nodes():
|
|
||||||
return 0.0
|
|
||||||
|
|
||||||
vessel_data = G.nodes[vessel].get('data', {})
|
|
||||||
liquids = vessel_data.get('liquid', [])
|
|
||||||
|
|
||||||
total_volume = 0.0
|
|
||||||
for liquid in liquids:
|
|
||||||
if isinstance(liquid, dict):
|
|
||||||
# 支持两种格式:新格式 (name, volume) 和旧格式 (liquid_type, liquid_volume)
|
|
||||||
volume = liquid.get('volume') or liquid.get('liquid_volume', 0.0)
|
|
||||||
total_volume += volume
|
|
||||||
|
|
||||||
return total_volume
|
|
||||||
|
|
||||||
|
|
||||||
def get_vessel_reagent_types(G: nx.DiGraph, vessel: str) -> List[str]:
|
|
||||||
"""获取容器中所有试剂的类型"""
|
|
||||||
if vessel not in G.nodes():
|
|
||||||
return []
|
|
||||||
|
|
||||||
vessel_data = G.nodes[vessel].get('data', {})
|
|
||||||
liquids = vessel_data.get('liquid', [])
|
|
||||||
|
|
||||||
reagent_types = []
|
|
||||||
for liquid in liquids:
|
|
||||||
if isinstance(liquid, dict):
|
|
||||||
# 支持两种格式的试剂类型字段
|
|
||||||
reagent_type = liquid.get('liquid_type') or liquid.get('name', '')
|
|
||||||
if reagent_type:
|
|
||||||
reagent_types.append(reagent_type)
|
|
||||||
|
|
||||||
# 同时检查配置中的试剂信息
|
|
||||||
config_reagent = G.nodes[vessel].get('config', {}).get('reagent', '')
|
|
||||||
reagent_name = vessel_data.get('reagent_name', '')
|
|
||||||
|
|
||||||
if config_reagent and config_reagent not in reagent_types:
|
|
||||||
reagent_types.append(config_reagent)
|
|
||||||
if reagent_name and reagent_name not in reagent_types:
|
|
||||||
reagent_types.append(reagent_name)
|
|
||||||
|
|
||||||
return reagent_types
|
|
||||||
|
|
||||||
|
|
||||||
def find_vessels_by_reagent(G: nx.DiGraph, reagent: str) -> List[str]:
|
|
||||||
"""
|
|
||||||
根据试剂类型查找所有匹配的容器
|
|
||||||
返回匹配容器的ID列表
|
|
||||||
"""
|
|
||||||
matching_vessels = []
|
|
||||||
|
|
||||||
for node_id in G.nodes():
|
|
||||||
if G.nodes[node_id].get('type') == 'container':
|
|
||||||
# 检查容器名称匹配
|
|
||||||
node_name = G.nodes[node_id].get('name', '').lower()
|
|
||||||
if reagent.lower() in node_id.lower() or reagent.lower() in node_name:
|
|
||||||
matching_vessels.append(node_id)
|
|
||||||
continue
|
|
||||||
|
|
||||||
# 检查试剂类型匹配
|
|
||||||
vessel_data = G.nodes[node_id].get('data', {})
|
|
||||||
liquids = vessel_data.get('liquid', [])
|
|
||||||
config_data = G.nodes[node_id].get('config', {})
|
|
||||||
|
|
||||||
# 检查 reagent_name 和 config.reagent
|
|
||||||
reagent_name = vessel_data.get('reagent_name', '').lower()
|
|
||||||
config_reagent = config_data.get('reagent', '').lower()
|
|
||||||
|
|
||||||
if (reagent.lower() == reagent_name or
|
|
||||||
reagent.lower() == config_reagent):
|
|
||||||
matching_vessels.append(node_id)
|
|
||||||
continue
|
|
||||||
|
|
||||||
# 检查液体列表
|
|
||||||
for liquid in liquids:
|
|
||||||
if isinstance(liquid, dict):
|
|
||||||
liquid_type = liquid.get('liquid_type') or liquid.get('name', '')
|
|
||||||
if liquid_type.lower() == reagent.lower():
|
|
||||||
matching_vessels.append(node_id)
|
|
||||||
break
|
|
||||||
|
|
||||||
return matching_vessels
|
|
||||||
|
|
||||||
|
|
||||||
def find_connected_stirrer(G: nx.DiGraph, vessel: str) -> str:
|
def find_connected_stirrer(G: nx.DiGraph, vessel: str) -> str:
|
||||||
@@ -213,7 +49,7 @@ def find_connected_stirrer(G: nx.DiGraph, vessel: str) -> str:
|
|||||||
"""
|
"""
|
||||||
# 查找所有搅拌器节点
|
# 查找所有搅拌器节点
|
||||||
stirrer_nodes = [node for node in G.nodes()
|
stirrer_nodes = [node for node in G.nodes()
|
||||||
if (G.nodes[node].get('class') or '') == 'virtual_stirrer']
|
if G.nodes[node].get('class') == 'virtual_stirrer']
|
||||||
|
|
||||||
# 检查哪个搅拌器与目标容器相连
|
# 检查哪个搅拌器与目标容器相连
|
||||||
for stirrer in stirrer_nodes:
|
for stirrer in stirrer_nodes:
|
||||||
@@ -238,10 +74,10 @@ def generate_add_protocol(
|
|||||||
purpose: str = "添加试剂"
|
purpose: str = "添加试剂"
|
||||||
) -> List[Dict[str, Any]]:
|
) -> List[Dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
生成添加试剂的协议序列,支持智能试剂匹配
|
生成添加试剂的协议序列
|
||||||
|
|
||||||
基于pump_protocol的成熟算法,实现试剂添加功能:
|
基于pump_protocol的成熟算法,实现试剂添加功能:
|
||||||
1. 智能查找试剂瓶(支持名称匹配、液体类型匹配、试剂配置匹配)
|
1. 自动查找试剂瓶
|
||||||
2. **先启动搅拌,再进行转移** - 确保试剂添加更均匀
|
2. **先启动搅拌,再进行转移** - 确保试剂添加更均匀
|
||||||
3. 使用pump_protocol实现液体转移
|
3. 使用pump_protocol实现液体转移
|
||||||
|
|
||||||
@@ -266,41 +102,24 @@ def generate_add_protocol(
|
|||||||
"""
|
"""
|
||||||
action_sequence = []
|
action_sequence = []
|
||||||
|
|
||||||
print(f"ADD_PROTOCOL: 开始生成添加试剂协议")
|
|
||||||
print(f" - 目标容器: {vessel}")
|
|
||||||
print(f" - 试剂: {reagent}")
|
|
||||||
print(f" - 体积: {volume} mL")
|
|
||||||
print(f" - 质量: {mass} g")
|
|
||||||
print(f" - 搅拌: {stir} (速度: {stir_speed} RPM)")
|
|
||||||
print(f" - 粘稠: {viscous}")
|
|
||||||
print(f" - 目的: {purpose}")
|
|
||||||
|
|
||||||
# 1. 验证目标容器存在
|
# 1. 验证目标容器存在
|
||||||
if vessel not in G.nodes():
|
if vessel not in G.nodes():
|
||||||
raise ValueError(f"目标容器 '{vessel}' 不存在于系统中")
|
raise ValueError(f"目标容器 '{vessel}' 不存在于系统中")
|
||||||
|
|
||||||
# 2. 智能查找试剂瓶
|
# 2. 查找试剂瓶
|
||||||
try:
|
try:
|
||||||
reagent_vessel = find_reagent_vessel(G, reagent)
|
reagent_vessel = find_reagent_vessel(G, reagent)
|
||||||
print(f"ADD_PROTOCOL: 找到试剂容器: {reagent_vessel}")
|
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
raise ValueError(f"无法找到试剂 '{reagent}': {str(e)}")
|
raise ValueError(f"无法找到试剂 '{reagent}': {str(e)}")
|
||||||
|
|
||||||
# 3. 验证试剂容器中的试剂体积
|
# 3. 验证是否存在从试剂瓶到目标容器的路径
|
||||||
available_volume = get_vessel_reagent_volume(G, reagent_vessel)
|
|
||||||
print(f"ADD_PROTOCOL: 试剂容器 {reagent_vessel} 中有 {available_volume} mL 试剂")
|
|
||||||
|
|
||||||
if available_volume < volume:
|
|
||||||
print(f"ADD_PROTOCOL: 警告 - 试剂容器中的试剂不足!需要 {volume} mL,可用 {available_volume} mL")
|
|
||||||
|
|
||||||
# 4. 验证是否存在从试剂瓶到目标容器的路径
|
|
||||||
try:
|
try:
|
||||||
path = nx.shortest_path(G, source=reagent_vessel, target=vessel)
|
path = nx.shortest_path(G, source=reagent_vessel, target=vessel)
|
||||||
print(f"ADD_PROTOCOL: 找到路径 {reagent_vessel} -> {vessel}: {path}")
|
print(f"ADD_PROTOCOL: 找到路径 {reagent_vessel} -> {vessel}: {path}")
|
||||||
except nx.NetworkXNoPath:
|
except nx.NetworkXNoPath:
|
||||||
raise ValueError(f"从试剂瓶 '{reagent_vessel}' 到目标容器 '{vessel}' 没有可用路径")
|
raise ValueError(f"从试剂瓶 '{reagent_vessel}' 到目标容器 '{vessel}' 没有可用路径")
|
||||||
|
|
||||||
# 5. **先启动搅拌** - 关键改进!
|
# 4. **先启动搅拌** - 关键改进!
|
||||||
if stir:
|
if stir:
|
||||||
try:
|
try:
|
||||||
stirrer_id = find_connected_stirrer(G, vessel)
|
stirrer_id = find_connected_stirrer(G, vessel)
|
||||||
@@ -321,21 +140,15 @@ def generate_add_protocol(
|
|||||||
|
|
||||||
action_sequence.append(stir_action)
|
action_sequence.append(stir_action)
|
||||||
print(f"ADD_PROTOCOL: 已添加搅拌动作,速度 {stir_speed} RPM")
|
print(f"ADD_PROTOCOL: 已添加搅拌动作,速度 {stir_speed} RPM")
|
||||||
|
|
||||||
# 等待搅拌稳定
|
|
||||||
action_sequence.append({
|
|
||||||
"action_name": "wait",
|
|
||||||
"action_kwargs": {"time": 5}
|
|
||||||
})
|
|
||||||
else:
|
else:
|
||||||
print(f"ADD_PROTOCOL: 警告 - 需要搅拌但未找到与容器 {vessel} 相连的搅拌器")
|
print(f"ADD_PROTOCOL: 警告 - 需要搅拌但未找到与容器 {vessel} 相连的搅拌器")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"ADD_PROTOCOL: 搅拌器配置出错: {str(e)}")
|
print(f"ADD_PROTOCOL: 搅拌器配置出错: {str(e)}")
|
||||||
|
|
||||||
# 6. 如果指定了体积,执行液体转移
|
# 5. 如果指定了体积,执行液体转移
|
||||||
if volume > 0:
|
if volume > 0:
|
||||||
# 6.1 计算流速参数
|
# 5.1 计算流速参数
|
||||||
if time > 0:
|
if time > 0:
|
||||||
# 根据时间计算流速
|
# 根据时间计算流速
|
||||||
transfer_flowrate = volume / time
|
transfer_flowrate = volume / time
|
||||||
@@ -352,7 +165,7 @@ def generate_add_protocol(
|
|||||||
print(f"ADD_PROTOCOL: 准备转移 {volume} mL 从 {reagent_vessel} 到 {vessel}")
|
print(f"ADD_PROTOCOL: 准备转移 {volume} mL 从 {reagent_vessel} 到 {vessel}")
|
||||||
print(f"ADD_PROTOCOL: 转移流速={transfer_flowrate} mL/s, 注入流速={flowrate} mL/s")
|
print(f"ADD_PROTOCOL: 转移流速={transfer_flowrate} mL/s, 注入流速={flowrate} mL/s")
|
||||||
|
|
||||||
# 6.2 使用pump_protocol的核心算法实现液体转移
|
# 5.2 使用pump_protocol的核心算法实现液体转移
|
||||||
try:
|
try:
|
||||||
pump_actions = generate_pump_protocol_with_rinsing(
|
pump_actions = generate_pump_protocol_with_rinsing(
|
||||||
G=G,
|
G=G,
|
||||||
@@ -377,8 +190,6 @@ def generate_add_protocol(
|
|||||||
raise ValueError(f"生成泵协议时出错: {str(e)}")
|
raise ValueError(f"生成泵协议时出错: {str(e)}")
|
||||||
|
|
||||||
print(f"ADD_PROTOCOL: 生成了 {len(action_sequence)} 个动作")
|
print(f"ADD_PROTOCOL: 生成了 {len(action_sequence)} 个动作")
|
||||||
print(f"ADD_PROTOCOL: 添加试剂协议生成完成")
|
|
||||||
|
|
||||||
return action_sequence
|
return action_sequence
|
||||||
|
|
||||||
|
|
||||||
@@ -399,7 +210,7 @@ def generate_add_protocol_with_cleaning(
|
|||||||
cleaning_repeats: int = 1
|
cleaning_repeats: int = 1
|
||||||
) -> List[Dict[str, Any]]:
|
) -> List[Dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
生成带清洗的添加试剂协议,支持智能试剂匹配
|
生成带清洗的添加试剂协议
|
||||||
|
|
||||||
与普通添加协议的区别是会在添加后进行管道清洗
|
与普通添加协议的区别是会在添加后进行管道清洗
|
||||||
|
|
||||||
@@ -424,7 +235,7 @@ def generate_add_protocol_with_cleaning(
|
|||||||
"""
|
"""
|
||||||
action_sequence = []
|
action_sequence = []
|
||||||
|
|
||||||
# 1. 智能查找试剂瓶
|
# 1. 查找试剂瓶
|
||||||
reagent_vessel = find_reagent_vessel(G, reagent)
|
reagent_vessel = find_reagent_vessel(G, reagent)
|
||||||
|
|
||||||
# 2. **先启动搅拌**
|
# 2. **先启动搅拌**
|
||||||
@@ -441,12 +252,6 @@ def generate_add_protocol_with_cleaning(
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
# 等待搅拌稳定
|
|
||||||
action_sequence.append({
|
|
||||||
"action_name": "wait",
|
|
||||||
"action_kwargs": {"time": 5}
|
|
||||||
})
|
|
||||||
|
|
||||||
# 3. 计算流速
|
# 3. 计算流速
|
||||||
if time > 0:
|
if time > 0:
|
||||||
transfer_flowrate = volume / time
|
transfer_flowrate = volume / time
|
||||||
@@ -491,7 +296,7 @@ def generate_sequential_add_protocol(
|
|||||||
final_stir_time: float = 300.0
|
final_stir_time: float = 300.0
|
||||||
) -> List[Dict[str, Any]]:
|
) -> List[Dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
生成连续添加多种试剂的协议,支持智能试剂匹配
|
生成连续添加多种试剂的协议
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
G: 网络图
|
G: 网络图
|
||||||
@@ -508,13 +313,13 @@ def generate_sequential_add_protocol(
|
|||||||
Example:
|
Example:
|
||||||
reagents = [
|
reagents = [
|
||||||
{
|
{
|
||||||
"reagent": "DMF", # 会匹配 reagent_bottle_1 (reagent_name: "DMF")
|
"reagent": "DMF",
|
||||||
"volume": 10.0,
|
"volume": 10.0,
|
||||||
"viscous": False,
|
"viscous": False,
|
||||||
"stir_speed": 300.0
|
"stir_speed": 300.0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"reagent": "ethyl_acetate", # 会匹配 reagent_bottle_2 (reagent_name: "ethyl_acetate")
|
"reagent": "ethyl_acetate",
|
||||||
"volume": 5.0,
|
"volume": 5.0,
|
||||||
"viscous": False,
|
"viscous": False,
|
||||||
"stir_speed": 350.0
|
"stir_speed": 350.0
|
||||||
@@ -523,17 +328,14 @@ def generate_sequential_add_protocol(
|
|||||||
"""
|
"""
|
||||||
action_sequence = []
|
action_sequence = []
|
||||||
|
|
||||||
print(f"ADD_PROTOCOL: 开始连续添加 {len(reagents)} 种试剂到容器 {vessel}")
|
|
||||||
|
|
||||||
for i, reagent_params in enumerate(reagents):
|
for i, reagent_params in enumerate(reagents):
|
||||||
reagent_name = reagent_params.get('reagent')
|
print(f"ADD_PROTOCOL: 处理第 {i+1}/{len(reagents)} 个试剂: {reagent_params.get('reagent')}")
|
||||||
print(f"ADD_PROTOCOL: 处理第 {i+1}/{len(reagents)} 个试剂: {reagent_name}")
|
|
||||||
|
|
||||||
# 生成单个试剂的添加协议
|
# 生成单个试剂的添加协议
|
||||||
add_actions = generate_add_protocol(
|
add_actions = generate_add_protocol(
|
||||||
G=G,
|
G=G,
|
||||||
vessel=vessel,
|
vessel=vessel,
|
||||||
reagent=reagent_name,
|
reagent=reagent_params.get('reagent'),
|
||||||
volume=reagent_params.get('volume', 0.0),
|
volume=reagent_params.get('volume', 0.0),
|
||||||
mass=reagent_params.get('mass', 0.0),
|
mass=reagent_params.get('mass', 0.0),
|
||||||
amount=reagent_params.get('amount', ''),
|
amount=reagent_params.get('amount', ''),
|
||||||
@@ -541,7 +343,7 @@ def generate_sequential_add_protocol(
|
|||||||
stir=stir_between_additions,
|
stir=stir_between_additions,
|
||||||
stir_speed=reagent_params.get('stir_speed', 300.0),
|
stir_speed=reagent_params.get('stir_speed', 300.0),
|
||||||
viscous=reagent_params.get('viscous', False),
|
viscous=reagent_params.get('viscous', False),
|
||||||
purpose=reagent_params.get('purpose', f'添加试剂 {reagent_name} ({i+1}/{len(reagents)})')
|
purpose=reagent_params.get('purpose', f'添加试剂 {i+1}')
|
||||||
)
|
)
|
||||||
|
|
||||||
action_sequence.extend(add_actions)
|
action_sequence.extend(add_actions)
|
||||||
@@ -550,23 +352,17 @@ def generate_sequential_add_protocol(
|
|||||||
if i < len(reagents) - 1: # 不是最后一个试剂
|
if i < len(reagents) - 1: # 不是最后一个试剂
|
||||||
action_sequence.append({
|
action_sequence.append({
|
||||||
"action_name": "wait",
|
"action_name": "wait",
|
||||||
"action_kwargs": {"time": 10} # 试剂混合时间
|
"action_kwargs": {"time": 2}
|
||||||
})
|
})
|
||||||
|
|
||||||
# 最终搅拌
|
# 最终搅拌
|
||||||
if final_stir:
|
if final_stir:
|
||||||
stirrer_id = find_connected_stirrer(G, vessel)
|
stirrer_id = find_connected_stirrer(G, vessel)
|
||||||
if stirrer_id:
|
if stirrer_id:
|
||||||
print(f"ADD_PROTOCOL: 添加最终搅拌动作,速度 {final_stir_speed} RPM,时间 {final_stir_time} 秒")
|
|
||||||
action_sequence.extend([
|
action_sequence.extend([
|
||||||
{
|
{
|
||||||
"device_id": stirrer_id,
|
"action_name": "wait",
|
||||||
"action_name": "stir",
|
"action_kwargs": {"time": final_stir_time}
|
||||||
"action_kwargs": {
|
|
||||||
"stir_time": final_stir_time,
|
|
||||||
"stir_speed": final_stir_speed,
|
|
||||||
"settling_time": 30.0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
@@ -574,52 +370,10 @@ def generate_sequential_add_protocol(
|
|||||||
return action_sequence
|
return action_sequence
|
||||||
|
|
||||||
|
|
||||||
# 便捷函数:常用添加方案
|
|
||||||
def generate_organic_add_protocol(
|
|
||||||
G: nx.DiGraph,
|
|
||||||
vessel: str,
|
|
||||||
organic_reagent: str,
|
|
||||||
volume: float,
|
|
||||||
stir_speed: float = 400.0
|
|
||||||
) -> List[Dict[str, Any]]:
|
|
||||||
"""有机试剂添加:慢速、搅拌"""
|
|
||||||
return generate_add_protocol(
|
|
||||||
G, vessel, organic_reagent, volume, 0.0, "", 0.0,
|
|
||||||
True, stir_speed, False, f"添加有机试剂 {organic_reagent}"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def generate_viscous_add_protocol(
|
|
||||||
G: nx.DiGraph,
|
|
||||||
vessel: str,
|
|
||||||
viscous_reagent: str,
|
|
||||||
volume: float,
|
|
||||||
addition_time: float = 120.0
|
|
||||||
) -> List[Dict[str, Any]]:
|
|
||||||
"""粘稠试剂添加:慢速、长时间"""
|
|
||||||
return generate_add_protocol(
|
|
||||||
G, vessel, viscous_reagent, volume, 0.0, "", addition_time,
|
|
||||||
True, 250.0, True, f"缓慢添加粘稠试剂 {viscous_reagent}"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def generate_solvent_add_protocol(
|
|
||||||
G: nx.DiGraph,
|
|
||||||
vessel: str,
|
|
||||||
solvent: str,
|
|
||||||
volume: float
|
|
||||||
) -> List[Dict[str, Any]]:
|
|
||||||
"""溶剂添加:快速、无需特殊处理"""
|
|
||||||
return generate_add_protocol(
|
|
||||||
G, vessel, solvent, volume, 0.0, "", 0.0,
|
|
||||||
False, 300.0, False, f"添加溶剂 {solvent}"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# 使用示例和测试函数
|
# 使用示例和测试函数
|
||||||
def test_add_protocol():
|
def test_add_protocol():
|
||||||
"""测试添加协议的示例"""
|
"""测试添加协议的示例"""
|
||||||
print("=== ADD PROTOCOL 智能匹配测试 ===")
|
print("=== ADD PROTOCOL 测试 ===")
|
||||||
print("测试完成")
|
print("测试完成")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,9 @@ from .pump_protocol import generate_pump_protocol
|
|||||||
|
|
||||||
def find_solvent_vessel(G: nx.DiGraph, solvent: str) -> str:
|
def find_solvent_vessel(G: nx.DiGraph, solvent: str) -> str:
|
||||||
"""
|
"""
|
||||||
查找溶剂容器,支持多种匹配模式:
|
查找溶剂容器,支持多种命名模式
|
||||||
1. 容器名称匹配(如 flask_water, reagent_bottle_1-DMF)
|
|
||||||
2. 容器内液体类型匹配(如 liquid_type: "DMF", "ethanol")
|
|
||||||
"""
|
"""
|
||||||
print(f"CLEAN_VESSEL: 正在查找溶剂 '{solvent}' 的容器...")
|
# 可能的溶剂容器命名模式
|
||||||
|
|
||||||
# 第一步:通过容器名称匹配
|
|
||||||
possible_names = [
|
possible_names = [
|
||||||
f"flask_{solvent}", # flask_water, flask_ethanol
|
f"flask_{solvent}", # flask_water, flask_ethanol
|
||||||
f"bottle_{solvent}", # bottle_water, bottle_ethanol
|
f"bottle_{solvent}", # bottle_water, bottle_ethanol
|
||||||
@@ -20,87 +16,13 @@ def find_solvent_vessel(G: nx.DiGraph, solvent: str) -> str:
|
|||||||
f"{solvent}_bottle", # water_bottle, ethanol_bottle
|
f"{solvent}_bottle", # water_bottle, ethanol_bottle
|
||||||
f"{solvent}", # 直接用溶剂名
|
f"{solvent}", # 直接用溶剂名
|
||||||
f"solvent_{solvent}", # solvent_water, solvent_ethanol
|
f"solvent_{solvent}", # solvent_water, solvent_ethanol
|
||||||
f"reagent_bottle_{solvent}", # reagent_bottle_DMF
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# 尝试名称匹配
|
|
||||||
for vessel_name in possible_names:
|
for vessel_name in possible_names:
|
||||||
if vessel_name in G.nodes():
|
if vessel_name in G.nodes():
|
||||||
print(f"CLEAN_VESSEL: 通过名称匹配找到容器: {vessel_name}")
|
|
||||||
return vessel_name
|
return vessel_name
|
||||||
|
|
||||||
# 第二步:通过模糊名称匹配(名称中包含溶剂名)
|
raise ValueError(f"未找到溶剂 '{solvent}' 的容器。尝试了以下名称: {possible_names}")
|
||||||
for node_id in G.nodes():
|
|
||||||
if G.nodes[node_id].get('type') == 'container':
|
|
||||||
# 检查节点ID或名称中是否包含溶剂名
|
|
||||||
node_name = G.nodes[node_id].get('name', '').lower()
|
|
||||||
if (solvent.lower() in node_id.lower() or
|
|
||||||
solvent.lower() in node_name):
|
|
||||||
print(f"CLEAN_VESSEL: 通过模糊名称匹配找到容器: {node_id} (名称: {node_name})")
|
|
||||||
return node_id
|
|
||||||
|
|
||||||
# 第三步:通过液体类型匹配
|
|
||||||
for node_id in G.nodes():
|
|
||||||
if G.nodes[node_id].get('type') == 'container':
|
|
||||||
vessel_data = G.nodes[node_id].get('data', {})
|
|
||||||
liquids = vessel_data.get('liquid', [])
|
|
||||||
|
|
||||||
for liquid in liquids:
|
|
||||||
if isinstance(liquid, dict):
|
|
||||||
# 支持两种格式的液体类型字段
|
|
||||||
liquid_type = liquid.get('liquid_type') or liquid.get('name', '')
|
|
||||||
reagent_name = vessel_data.get('reagent_name', '')
|
|
||||||
config_reagent = G.nodes[node_id].get('config', {}).get('reagent', '')
|
|
||||||
|
|
||||||
# 检查多个可能的字段
|
|
||||||
if (liquid_type.lower() == solvent.lower() or
|
|
||||||
reagent_name.lower() == solvent.lower() or
|
|
||||||
config_reagent.lower() == solvent.lower()):
|
|
||||||
print(f"CLEAN_VESSEL: 通过液体类型匹配找到容器: {node_id}")
|
|
||||||
print(f" - liquid_type: {liquid_type}")
|
|
||||||
print(f" - reagent_name: {reagent_name}")
|
|
||||||
print(f" - config.reagent: {config_reagent}")
|
|
||||||
return node_id
|
|
||||||
|
|
||||||
# 第四步:列出所有可用的容器信息帮助调试
|
|
||||||
available_containers = []
|
|
||||||
for node_id in G.nodes():
|
|
||||||
if G.nodes[node_id].get('type') == 'container':
|
|
||||||
vessel_data = G.nodes[node_id].get('data', {})
|
|
||||||
config_data = G.nodes[node_id].get('config', {})
|
|
||||||
liquids = vessel_data.get('liquid', [])
|
|
||||||
|
|
||||||
container_info = {
|
|
||||||
'id': node_id,
|
|
||||||
'name': G.nodes[node_id].get('name', ''),
|
|
||||||
'liquid_types': [],
|
|
||||||
'reagent_name': vessel_data.get('reagent_name', ''),
|
|
||||||
'config_reagent': config_data.get('reagent', '')
|
|
||||||
}
|
|
||||||
|
|
||||||
for liquid in liquids:
|
|
||||||
if isinstance(liquid, dict):
|
|
||||||
liquid_type = liquid.get('liquid_type') or liquid.get('name', '')
|
|
||||||
if liquid_type:
|
|
||||||
container_info['liquid_types'].append(liquid_type)
|
|
||||||
|
|
||||||
available_containers.append(container_info)
|
|
||||||
|
|
||||||
print(f"CLEAN_VESSEL: 可用容器列表:")
|
|
||||||
for container in available_containers:
|
|
||||||
print(f" - {container['id']}: {container['name']}")
|
|
||||||
print(f" 液体类型: {container['liquid_types']}")
|
|
||||||
print(f" 试剂名称: {container['reagent_name']}")
|
|
||||||
print(f" 配置试剂: {container['config_reagent']}")
|
|
||||||
|
|
||||||
raise ValueError(f"未找到溶剂 '{solvent}' 的容器。尝试了名称匹配: {possible_names}")
|
|
||||||
|
|
||||||
|
|
||||||
def find_solvent_vessel_by_any_match(G: nx.DiGraph, solvent: str) -> str:
|
|
||||||
"""
|
|
||||||
增强版溶剂容器查找,支持各种匹配方式的别名函数
|
|
||||||
"""
|
|
||||||
return find_solvent_vessel(G, solvent)
|
|
||||||
|
|
||||||
|
|
||||||
def find_waste_vessel(G: nx.DiGraph) -> str:
|
def find_waste_vessel(G: nx.DiGraph) -> str:
|
||||||
@@ -360,80 +282,3 @@ def generate_organic_clean_protocol(
|
|||||||
action_sequence.extend(water_actions)
|
action_sequence.extend(water_actions)
|
||||||
|
|
||||||
return action_sequence
|
return action_sequence
|
||||||
|
|
||||||
|
|
||||||
def get_vessel_liquid_volume(G: nx.DiGraph, vessel: str) -> float:
|
|
||||||
"""获取容器中的液体体积(修复版)"""
|
|
||||||
if vessel not in G.nodes():
|
|
||||||
return 0.0
|
|
||||||
|
|
||||||
vessel_data = G.nodes[vessel].get('data', {})
|
|
||||||
liquids = vessel_data.get('liquid', [])
|
|
||||||
|
|
||||||
total_volume = 0.0
|
|
||||||
for liquid in liquids:
|
|
||||||
if isinstance(liquid, dict):
|
|
||||||
# 支持两种格式:新格式 (name, volume) 和旧格式 (liquid_type, liquid_volume)
|
|
||||||
volume = liquid.get('volume') or liquid.get('liquid_volume', 0.0)
|
|
||||||
total_volume += volume
|
|
||||||
|
|
||||||
return total_volume
|
|
||||||
|
|
||||||
|
|
||||||
def get_vessel_liquid_types(G: nx.DiGraph, vessel: str) -> List[str]:
|
|
||||||
"""获取容器中所有液体的类型"""
|
|
||||||
if vessel not in G.nodes():
|
|
||||||
return []
|
|
||||||
|
|
||||||
vessel_data = G.nodes[vessel].get('data', {})
|
|
||||||
liquids = vessel_data.get('liquid', [])
|
|
||||||
|
|
||||||
liquid_types = []
|
|
||||||
for liquid in liquids:
|
|
||||||
if isinstance(liquid, dict):
|
|
||||||
# 支持两种格式的液体类型字段
|
|
||||||
liquid_type = liquid.get('liquid_type') or liquid.get('name', '')
|
|
||||||
if liquid_type:
|
|
||||||
liquid_types.append(liquid_type)
|
|
||||||
|
|
||||||
return liquid_types
|
|
||||||
|
|
||||||
|
|
||||||
def find_vessel_by_content(G: nx.DiGraph, content: str) -> List[str]:
|
|
||||||
"""
|
|
||||||
根据内容物查找所有匹配的容器
|
|
||||||
返回匹配容器的ID列表
|
|
||||||
"""
|
|
||||||
matching_vessels = []
|
|
||||||
|
|
||||||
for node_id in G.nodes():
|
|
||||||
if G.nodes[node_id].get('type') == 'container':
|
|
||||||
# 检查容器名称匹配
|
|
||||||
node_name = G.nodes[node_id].get('name', '').lower()
|
|
||||||
if content.lower() in node_id.lower() or content.lower() in node_name:
|
|
||||||
matching_vessels.append(node_id)
|
|
||||||
continue
|
|
||||||
|
|
||||||
# 检查液体类型匹配
|
|
||||||
vessel_data = G.nodes[node_id].get('data', {})
|
|
||||||
liquids = vessel_data.get('liquid', [])
|
|
||||||
config_data = G.nodes[node_id].get('config', {})
|
|
||||||
|
|
||||||
# 检查 reagent_name 和 config.reagent
|
|
||||||
reagent_name = vessel_data.get('reagent_name', '').lower()
|
|
||||||
config_reagent = config_data.get('reagent', '').lower()
|
|
||||||
|
|
||||||
if (content.lower() == reagent_name or
|
|
||||||
content.lower() == config_reagent):
|
|
||||||
matching_vessels.append(node_id)
|
|
||||||
continue
|
|
||||||
|
|
||||||
# 检查液体列表
|
|
||||||
for liquid in liquids:
|
|
||||||
if isinstance(liquid, dict):
|
|
||||||
liquid_type = liquid.get('liquid_type') or liquid.get('name', '')
|
|
||||||
if liquid_type.lower() == content.lower():
|
|
||||||
matching_vessels.append(node_id)
|
|
||||||
break
|
|
||||||
|
|
||||||
return matching_vessels
|
|
||||||
@@ -2,17 +2,17 @@
|
|||||||
|
|
||||||
# 1. virtual_pump - 虚拟泵
|
# 1. virtual_pump - 虚拟泵
|
||||||
# 描述:具有多通道阀门特性的泵,根据valve_position可连接多个容器
|
# 描述:具有多通道阀门特性的泵,根据valve_position可连接多个容器
|
||||||
# 连接特性:1个输入口 + 1个输出口
|
# 连接特性:1个输入口 + 1个输出口(当前配置,实际应该有多个输出口)
|
||||||
# 数据类型:fluid(流体连接)
|
# 数据类型:fluid(流体连接)
|
||||||
|
|
||||||
# 2. virtual_stirrer - 虚拟搅拌器
|
# 2. virtual_stirrer - 虚拟搅拌器
|
||||||
# 描述:机械连接设备,提供搅拌功能
|
# 描述:机械连接设备,提供搅拌功能
|
||||||
# 连接特性:1个连接点
|
# 连接特性:1个双向连接点(undirected)
|
||||||
# 数据类型:mechanical(机械连接)
|
# 数据类型:mechanical(机械连接)
|
||||||
|
|
||||||
# 3a. virtual_valve - 虚拟八通阀门
|
# 3a. virtual_valve - 虚拟八通阀门
|
||||||
# 描述:8通阀门,可切换流向
|
# 描述:8通阀门(实际配置为7通),可切换流向
|
||||||
# 连接特性:1个口连接注射泵 + 多个输出口
|
# 连接特性:1个口连接注射泵 + 7个输出口
|
||||||
# 数据类型:fluid(流体连接)
|
# 数据类型:fluid(流体连接)
|
||||||
|
|
||||||
# 3b. virtual_solenoid_valve (电磁阀门)
|
# 3b. virtual_solenoid_valve (电磁阀门)
|
||||||
@@ -32,12 +32,12 @@
|
|||||||
|
|
||||||
# 6. virtual_heatchill - 虚拟加热/冷却器
|
# 6. virtual_heatchill - 虚拟加热/冷却器
|
||||||
# 描述:温控设备,容器直接放置在设备上进行温度控制
|
# 描述:温控设备,容器直接放置在设备上进行温度控制
|
||||||
# 连接特性:1个连接点
|
# 连接特性:1个双向连接点(undirected)
|
||||||
# 数据类型:mechanical(机械/物理接触连接)
|
# 数据类型:mechanical(机械/物理接触连接)
|
||||||
|
|
||||||
# 7. virtual_transfer_pump - 虚拟转移泵(注射器式)
|
# 7. virtual_transfer_pump - 虚拟转移泵(注射器式)
|
||||||
# 描述:注射器式转移泵,通过同一个口吸入和排出液体
|
# 描述:注射器式转移泵,通过同一个口吸入和排出液体
|
||||||
# 连接特性:1个连接点
|
# 连接特性:1个双向连接点(undirected)
|
||||||
# 数据类型:fluid(流体连接)
|
# 数据类型:fluid(流体连接)
|
||||||
|
|
||||||
# 8. virtual_column - 虚拟色谱柱
|
# 8. virtual_column - 虚拟色谱柱
|
||||||
@@ -57,23 +57,26 @@
|
|||||||
|
|
||||||
# 11. virtual_vacuum_pump - 虚拟真空泵
|
# 11. virtual_vacuum_pump - 虚拟真空泵
|
||||||
# 描述:真空泵设备,用于抽真空操作和真空/充气循环
|
# 描述:真空泵设备,用于抽真空操作和真空/充气循环
|
||||||
# 连接特性:1个输出口(连接需要抽真空的系统)
|
# 连接特性:1个输入口(连接需要抽真空的系统)
|
||||||
# 数据类型:fluid(流体连接)
|
# 数据类型:fluid(流体连接)
|
||||||
|
# 主要功能:开启/关闭、状态控制(ON/OFF)
|
||||||
|
|
||||||
# 12. virtual_gas_source - 虚拟气源
|
# 12. virtual_gas_source - 虚拟气源
|
||||||
# 描述:气源设备,用于充气操作和真空/充气循环
|
# 描述:气源设备,用于充气操作和真空/充气循环
|
||||||
# 连接特性:1个输出口(向系统提供加压气体)
|
# 连接特性:1个输出口(向系统提供加压气体)
|
||||||
# 数据类型:fluid(流体连接)
|
# 数据类型:fluid(流体连接)
|
||||||
|
# 主要功能:开启/关闭、状态控制(ON/OFF)
|
||||||
|
|
||||||
virtual_pump:
|
virtual_pump:
|
||||||
description: Virtual Pump for PumpTransferProtocol Testing
|
description: Virtual Pump for PumpTransferProtocol Testing
|
||||||
|
#icon: 这个注册的设备应该是写错了,后续删掉
|
||||||
class:
|
class:
|
||||||
module: unilabos.devices.virtual.virtual_pump:VirtualPump
|
module: unilabos.devices.virtual.virtual_pump:VirtualPump
|
||||||
type: python
|
type: python
|
||||||
status_types:
|
status_types:
|
||||||
status: String
|
status: String
|
||||||
position: Float64
|
position: Float64
|
||||||
valve_position: Int32
|
valve_position: Int32 # 修复:使用 Int32 而不是 String
|
||||||
max_volume: Float64
|
max_volume: Float64
|
||||||
current_volume: Float64
|
current_volume: Float64
|
||||||
action_value_mappings:
|
action_value_mappings:
|
||||||
@@ -102,6 +105,7 @@ virtual_pump:
|
|||||||
status: status
|
status: status
|
||||||
result:
|
result:
|
||||||
success: success
|
success: success
|
||||||
|
# 虚拟泵节点配置 - 具有多通道阀门特性,根据valve_position可连接多个容器
|
||||||
handles:
|
handles:
|
||||||
- handler_key: pumpio
|
- handler_key: pumpio
|
||||||
label: pumpio
|
label: pumpio
|
||||||
@@ -109,7 +113,7 @@ virtual_pump:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: fluid_in
|
data_key: fluid_in
|
||||||
description: "泵的输出口"
|
description: "泵的进液口,连接源容器"
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -129,11 +133,11 @@ virtual_stirrer:
|
|||||||
type: python
|
type: python
|
||||||
status_types:
|
status_types:
|
||||||
status: String
|
status: String
|
||||||
operation_mode: String
|
operation_mode: String # 操作模式
|
||||||
current_vessel: String
|
current_vessel: String # 当前容器
|
||||||
current_speed: Float64
|
current_speed: Float64 # 当前搅拌速度
|
||||||
is_stirring: Bool
|
is_stirring: Bool # 是否搅拌
|
||||||
remaining_time: Float64
|
remaining_time: Float64 # 剩余时间
|
||||||
action_value_mappings:
|
action_value_mappings:
|
||||||
stir:
|
stir:
|
||||||
type: Stir
|
type: Stir
|
||||||
@@ -163,15 +167,16 @@ virtual_stirrer:
|
|||||||
status: status
|
status: status
|
||||||
result:
|
result:
|
||||||
success: success
|
success: success
|
||||||
|
# 虚拟搅拌器节点配置 - 机械连接设备,双向连接点用于搅拌容器
|
||||||
handles:
|
handles:
|
||||||
- handler_key: stirrer
|
- handler_key: stirrer
|
||||||
label: stirrer
|
label: stirrer
|
||||||
data_type: mechanical
|
data_type: mechanical
|
||||||
side: NORTH
|
side: NORTH
|
||||||
io_type: source
|
io_type: undirected
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: vessel
|
data_key: vessel
|
||||||
description: "搅拌器的机械连接口"
|
description: "搅拌器的机械连接口,容器通过机械连接进行搅拌"
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -213,6 +218,7 @@ virtual_multiway_valve:
|
|||||||
feedback: {}
|
feedback: {}
|
||||||
result:
|
result:
|
||||||
success: success
|
success: success
|
||||||
|
# 八通阀门节点配置 - 1个输入口,8个输出口,可切换流向
|
||||||
handles:
|
handles:
|
||||||
- handler_key: transferpump
|
- handler_key: transferpump
|
||||||
label: transferpump
|
label: transferpump
|
||||||
@@ -221,7 +227,7 @@ virtual_multiway_valve:
|
|||||||
io_type: target
|
io_type: target
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: fluid_in
|
data_key: fluid_in
|
||||||
description: "八通阀门进液口"
|
description: "八通阀门进液口,接收来源流体"
|
||||||
- handler_key: 1
|
- handler_key: 1
|
||||||
label: 1
|
label: 1
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
@@ -229,7 +235,7 @@ virtual_multiway_valve:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: executor
|
data_source: executor
|
||||||
data_key: fluid_port_1
|
data_key: fluid_port_1
|
||||||
description: "八通阀门端口1"
|
description: "八通阀门端口1,position=1时流体从此口流出"
|
||||||
- handler_key: 2
|
- handler_key: 2
|
||||||
label: 2
|
label: 2
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
@@ -237,7 +243,7 @@ virtual_multiway_valve:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: executor
|
data_source: executor
|
||||||
data_key: fluid_port_2
|
data_key: fluid_port_2
|
||||||
description: "八通阀门端口2"
|
description: "八通阀门端口2,position=2时流体从此口流出"
|
||||||
- handler_key: 3
|
- handler_key: 3
|
||||||
label: 3
|
label: 3
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
@@ -245,7 +251,7 @@ virtual_multiway_valve:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: executor
|
data_source: executor
|
||||||
data_key: fluid_port_3
|
data_key: fluid_port_3
|
||||||
description: "八通阀门端口3"
|
description: "八通阀门端口3,position=3时流体从此口流出"
|
||||||
- handler_key: 4
|
- handler_key: 4
|
||||||
label: 4
|
label: 4
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
@@ -253,7 +259,7 @@ virtual_multiway_valve:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: executor
|
data_source: executor
|
||||||
data_key: fluid_port_4
|
data_key: fluid_port_4
|
||||||
description: "八通阀门端口4"
|
description: "八通阀门端口4,position=4时流体从此口流出"
|
||||||
- handler_key: 5
|
- handler_key: 5
|
||||||
label: 5
|
label: 5
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
@@ -261,15 +267,7 @@ virtual_multiway_valve:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: executor
|
data_source: executor
|
||||||
data_key: fluid_port_5
|
data_key: fluid_port_5
|
||||||
description: "八通阀门端口5"
|
description: "八通阀门端口5,position=5时流体从此口流出"
|
||||||
- handler_key: 6
|
|
||||||
label: 6
|
|
||||||
data_type: fluid
|
|
||||||
side: WEST
|
|
||||||
io_type: source
|
|
||||||
data_source: executor
|
|
||||||
data_key: fluid_port_6
|
|
||||||
description: "八通阀门端口6"
|
|
||||||
- handler_key: 7
|
- handler_key: 7
|
||||||
label: 7
|
label: 7
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
@@ -277,7 +275,15 @@ virtual_multiway_valve:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: executor
|
data_source: executor
|
||||||
data_key: fluid_port_7
|
data_key: fluid_port_7
|
||||||
description: "八通阀门端口7"
|
description: "八通阀门端口7,position=7时流体从此口流出"
|
||||||
|
- handler_key: 6
|
||||||
|
label: 6
|
||||||
|
data_type: fluid
|
||||||
|
side: WEST
|
||||||
|
io_type: source
|
||||||
|
data_source: executor
|
||||||
|
data_key: fluid_port_6
|
||||||
|
description: "八通阀门端口6,position=6时流体从此口流出"
|
||||||
- handler_key: 8
|
- handler_key: 8
|
||||||
label: 8
|
label: 8
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
@@ -285,7 +291,7 @@ virtual_multiway_valve:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: executor
|
data_source: executor
|
||||||
data_key: fluid_port_8
|
data_key: fluid_port_8
|
||||||
description: "八通阀门端口8"
|
description: "八通阀门端口8,position=8时流体从此口流出"
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -296,21 +302,21 @@ virtual_multiway_valve:
|
|||||||
type: integer
|
type: integer
|
||||||
default: 8
|
default: 8
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
||||||
virtual_solenoid_valve:
|
virtual_solenoid_valve:
|
||||||
description: Virtual Solenoid Valve for simple on/off flow control
|
description: Virtual Solenoid Valve for simple on/off flow control
|
||||||
|
#icon: SolenoidValve.webp暂时还没有
|
||||||
class:
|
class:
|
||||||
module: unilabos.devices.virtual.virtual_solenoid_valve:VirtualSolenoidValve
|
module: unilabos.devices.virtual.virtual_solenoid_valve:VirtualSolenoidValve
|
||||||
type: python
|
type: python
|
||||||
status_types:
|
status_types:
|
||||||
status: String
|
status: String
|
||||||
valve_state: String
|
valve_state: String # "open" or "closed"
|
||||||
is_open: Bool
|
is_open: Bool
|
||||||
action_value_mappings:
|
action_value_mappings:
|
||||||
set_valve_position:
|
set_valve_position:
|
||||||
type: SendCmd
|
type: SendCmd
|
||||||
goal:
|
goal:
|
||||||
command: command
|
command: command # 确保参数名匹配
|
||||||
feedback: {}
|
feedback: {}
|
||||||
result:
|
result:
|
||||||
success: success
|
success: success
|
||||||
@@ -335,17 +341,18 @@ virtual_solenoid_valve:
|
|||||||
feedback: {}
|
feedback: {}
|
||||||
result:
|
result:
|
||||||
success: success
|
success: success
|
||||||
|
# 电磁阀门节点配置 - 双向流通的开关型阀门,流动方向由泵决定
|
||||||
handles:
|
handles:
|
||||||
- handler_key: in
|
- handler_key: inlet
|
||||||
label: in
|
label: inlet
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
side: NORTH
|
side: NORTH
|
||||||
io_type: target
|
io_type: target
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: fluid_port_in
|
data_key: fluid_port_in
|
||||||
description: "电磁阀的进液口"
|
description: "电磁阀的进液口"
|
||||||
- handler_key: out
|
- handler_key: outlet
|
||||||
label: out
|
label: outlet
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
side: SOUTH
|
side: SOUTH
|
||||||
io_type: source
|
io_type: source
|
||||||
@@ -365,9 +372,9 @@ virtual_solenoid_valve:
|
|||||||
type: number
|
type: number
|
||||||
default: 0.1
|
default: 0.1
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
||||||
virtual_centrifuge:
|
virtual_centrifuge:
|
||||||
description: Virtual Centrifuge for CentrifugeProtocol Testing
|
description: Virtual Centrifuge for CentrifugeProtocol Testing
|
||||||
|
#icon: Centrifuge.webp暂时还没有
|
||||||
class:
|
class:
|
||||||
module: unilabos.devices.virtual.virtual_centrifuge:VirtualCentrifuge
|
module: unilabos.devices.virtual.virtual_centrifuge:VirtualCentrifuge
|
||||||
type: python
|
type: python
|
||||||
@@ -382,8 +389,8 @@ virtual_centrifuge:
|
|||||||
min_temp: Float64
|
min_temp: Float64
|
||||||
centrifuge_state: String
|
centrifuge_state: String
|
||||||
time_remaining: Float64
|
time_remaining: Float64
|
||||||
progress: Float64
|
progress: Float64 # 添加这个状态
|
||||||
message: String
|
message: String # 添加这个状态
|
||||||
action_value_mappings:
|
action_value_mappings:
|
||||||
centrifuge:
|
centrifuge:
|
||||||
type: Centrifuge
|
type: Centrifuge
|
||||||
@@ -400,6 +407,7 @@ virtual_centrifuge:
|
|||||||
result:
|
result:
|
||||||
success: success
|
success: success
|
||||||
message: message
|
message: message
|
||||||
|
# 虚拟离心机节点配置 - 单个样品处理设备,输入输出都是同一个样品容器
|
||||||
handles:
|
handles:
|
||||||
- handler_key: centrifuge
|
- handler_key: centrifuge
|
||||||
label: centrifuge
|
label: centrifuge
|
||||||
@@ -428,6 +436,7 @@ virtual_centrifuge:
|
|||||||
|
|
||||||
virtual_filter:
|
virtual_filter:
|
||||||
description: Virtual Filter for FilterProtocol Testing
|
description: Virtual Filter for FilterProtocol Testing
|
||||||
|
#icon: Filter.webp暂时还没有
|
||||||
class:
|
class:
|
||||||
module: unilabos.devices.virtual.virtual_filter:VirtualFilter
|
module: unilabos.devices.virtual.virtual_filter:VirtualFilter
|
||||||
type: python
|
type: python
|
||||||
@@ -461,31 +470,16 @@ virtual_filter:
|
|||||||
success: success
|
success: success
|
||||||
message: message
|
message: message
|
||||||
return_info: message
|
return_info: message
|
||||||
|
# 过滤器节点配置 - 固液分离设备
|
||||||
handles:
|
handles:
|
||||||
- handler_key: filter_in
|
- handler_key: filter
|
||||||
label: filter_in
|
label: filter
|
||||||
data_type: transport
|
data_type: transport
|
||||||
side: NORTH
|
side: NORTH
|
||||||
io_type: target
|
io_type: source
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: vessel_in
|
data_key: vessel
|
||||||
description: "需要过滤的样品容器"
|
description: "需要过滤的样品容器"
|
||||||
- handler_key: filtrate_out
|
|
||||||
label: filtrate_out
|
|
||||||
data_type: transport
|
|
||||||
side: SOUTH
|
|
||||||
io_type: source
|
|
||||||
data_source: handle
|
|
||||||
data_key: filtrate_out
|
|
||||||
description: "滤液出口"
|
|
||||||
- handler_key: retentate_out
|
|
||||||
label: retentate_out
|
|
||||||
data_type: transport
|
|
||||||
side: EAST
|
|
||||||
io_type: source
|
|
||||||
data_source: handle
|
|
||||||
data_key: retentate_out
|
|
||||||
description: "滤渣/固体出口"
|
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -511,9 +505,10 @@ virtual_heatchill:
|
|||||||
type: python
|
type: python
|
||||||
status_types:
|
status_types:
|
||||||
status: String
|
status: String
|
||||||
operation_mode: String
|
operation_mode: String # 保留:操作模式
|
||||||
is_stirring: Bool
|
is_stirring: Bool # 保留:是否搅拌
|
||||||
stir_speed: Float64
|
stir_speed: Float64 # 保留:搅拌速度
|
||||||
|
# remaining_time: Float64 # 保留:剩余时间
|
||||||
action_value_mappings:
|
action_value_mappings:
|
||||||
heat_chill:
|
heat_chill:
|
||||||
type: HeatChill
|
type: HeatChill
|
||||||
@@ -546,6 +541,7 @@ virtual_heatchill:
|
|||||||
status: status
|
status: status
|
||||||
result:
|
result:
|
||||||
success: success
|
success: success
|
||||||
|
# 虚拟加热/冷却器节点配置
|
||||||
handles:
|
handles:
|
||||||
- handler_key: heatchill
|
- handler_key: heatchill
|
||||||
label: heatchill
|
label: heatchill
|
||||||
@@ -554,7 +550,7 @@ virtual_heatchill:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: vessel
|
data_key: vessel
|
||||||
description: "加热/冷却器的物理连接口"
|
description: "加热/冷却器的物理连接口,容器直接放置在设备上进行温度控制"
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -606,10 +602,10 @@ virtual_transfer_pump:
|
|||||||
success: success
|
success: success
|
||||||
message: message
|
message: message
|
||||||
set_position:
|
set_position:
|
||||||
type: SetPumpPosition
|
type: SetPumpPosition # ← 使用新的动作类型
|
||||||
goal:
|
goal:
|
||||||
position: position
|
position: position # ← 直接映射参数名
|
||||||
max_velocity: max_velocity
|
max_velocity: max_velocity # ← 直接映射参数名
|
||||||
feedback:
|
feedback:
|
||||||
status: status
|
status: status
|
||||||
current_position: current_position
|
current_position: current_position
|
||||||
@@ -617,6 +613,7 @@ virtual_transfer_pump:
|
|||||||
result:
|
result:
|
||||||
success: success
|
success: success
|
||||||
message: message
|
message: message
|
||||||
|
# 注射器式转移泵节点配置 - 只有一个双向连接口,可吸入和排出液体
|
||||||
handles:
|
handles:
|
||||||
- handler_key: transferpump
|
- handler_key: transferpump
|
||||||
label: transferpump
|
label: transferpump
|
||||||
@@ -625,7 +622,7 @@ virtual_transfer_pump:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: fluid_port
|
data_key: fluid_port
|
||||||
description: "注射器式转移泵的连接口"
|
description: "注射器式转移泵的唯一连接口,通过阀门切换实现吸入和排出"
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -645,6 +642,7 @@ virtual_transfer_pump:
|
|||||||
|
|
||||||
virtual_column:
|
virtual_column:
|
||||||
description: Virtual Column Chromatography Device for RunColumn Protocol Testing
|
description: Virtual Column Chromatography Device for RunColumn Protocol Testing
|
||||||
|
#icon: Column.webp暂时还没有
|
||||||
class:
|
class:
|
||||||
module: unilabos.devices.virtual.virtual_column:VirtualColumn
|
module: unilabos.devices.virtual.virtual_column:VirtualColumn
|
||||||
type: python
|
type: python
|
||||||
@@ -673,12 +671,13 @@ virtual_column:
|
|||||||
success: success
|
success: success
|
||||||
message: current_status
|
message: current_status
|
||||||
return_info: current_status
|
return_info: current_status
|
||||||
|
# 柱层析设备节点配置 - 色谱分离设备
|
||||||
handles:
|
handles:
|
||||||
- handler_key: columnin
|
- handler_key: columnin
|
||||||
label: columnin
|
label: columnin
|
||||||
data_type: transport
|
data_type: transport
|
||||||
side: WEST
|
side: WEST
|
||||||
io_type: target
|
io_type: sink
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: from_vessel
|
data_key: from_vessel
|
||||||
description: "样品输入口"
|
description: "样品输入口"
|
||||||
@@ -742,31 +741,16 @@ virtual_rotavap:
|
|||||||
result:
|
result:
|
||||||
success: success
|
success: success
|
||||||
message: message
|
message: message
|
||||||
|
# 虚拟旋转蒸发仪节点配置 - 1个样品口
|
||||||
handles:
|
handles:
|
||||||
- handler_key: sample_in
|
- handler_key: rotavap-sample
|
||||||
label: sample_in
|
label: rotavap-sample
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
side: NORTH
|
side: NORTH
|
||||||
io_type: target
|
io_type: target
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: vessel_in
|
data_key: vessel
|
||||||
description: "样品连接口"
|
description: "样品连接口,放入需要蒸发的样品"
|
||||||
- handler_key: product_out
|
|
||||||
label: product_out
|
|
||||||
data_type: fluid
|
|
||||||
side: SOUTH
|
|
||||||
io_type: source
|
|
||||||
data_source: handle
|
|
||||||
data_key: product_out
|
|
||||||
description: "浓缩产物出口"
|
|
||||||
- handler_key: solvent_out
|
|
||||||
label: solvent_out
|
|
||||||
data_type: fluid
|
|
||||||
side: EAST
|
|
||||||
io_type: source
|
|
||||||
data_source: handle
|
|
||||||
data_key: solvent_out
|
|
||||||
description: "冷凝溶剂出口"
|
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -820,39 +804,24 @@ virtual_separator:
|
|||||||
result:
|
result:
|
||||||
success: success
|
success: success
|
||||||
message: message
|
message: message
|
||||||
|
# 虚拟分液器节点配置 - 分离设备,1个输入口(混合液),2个输出口(上相和下相)
|
||||||
handles:
|
handles:
|
||||||
- handler_key: separator_in
|
- handler_key: separatorin
|
||||||
label: separator_in
|
label: separatorin
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
side: NORTH
|
side: NORTH
|
||||||
io_type: target
|
io_type: target
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: from_vessel
|
data_key: from_vessel
|
||||||
description: "需要分离的混合液体输入口"
|
description: "需要分离的混合液体输入口"
|
||||||
- handler_key: bottom_phase_out
|
- handler_key: separatorout
|
||||||
label: bottom_phase_out
|
label: separatorout
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
side: SOUTH
|
side: SOUTH
|
||||||
io_type: source
|
io_type: source
|
||||||
data_source: executor
|
data_source: executor
|
||||||
data_key: bottom_outlet
|
data_key: bottom_outlet
|
||||||
description: "下相(重相)液体输出口"
|
description: "下相(重相)液体输出口"
|
||||||
- handler_key: top_phase_out
|
|
||||||
label: top_phase_out
|
|
||||||
data_type: fluid
|
|
||||||
side: EAST
|
|
||||||
io_type: source
|
|
||||||
data_source: executor
|
|
||||||
data_key: top_outlet
|
|
||||||
description: "上相(轻相)液体输出口"
|
|
||||||
- handler_key: bind
|
|
||||||
label: bind
|
|
||||||
io_type: target
|
|
||||||
data_type: mechanical
|
|
||||||
side: WEST
|
|
||||||
data_source: handle
|
|
||||||
data_key: mechanical_port
|
|
||||||
description: "用于连接搅拌器等机械设备的接口"
|
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -892,6 +861,7 @@ virtual_vacuum_pump:
|
|||||||
string: string
|
string: string
|
||||||
feedback: {}
|
feedback: {}
|
||||||
result: {}
|
result: {}
|
||||||
|
# 虚拟真空泵节点配置 - 真空设备,1个输入口连接需要抽真空的系统
|
||||||
handles:
|
handles:
|
||||||
- handler_key: vacuumpump
|
- handler_key: vacuumpump
|
||||||
label: vacuumpump
|
label: vacuumpump
|
||||||
@@ -900,7 +870,7 @@ virtual_vacuum_pump:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: handle
|
data_source: handle
|
||||||
data_key: fluid_in
|
data_key: fluid_in
|
||||||
description: "真空泵进气口"
|
description: "真空泵进气口,连接需要抽真空的容器或管路"
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -912,6 +882,7 @@ virtual_vacuum_pump:
|
|||||||
|
|
||||||
virtual_gas_source:
|
virtual_gas_source:
|
||||||
description: Virtual gas source
|
description: Virtual gas source
|
||||||
|
#icon: GasSource.webp暂时还没有
|
||||||
class:
|
class:
|
||||||
module: unilabos.devices.virtual.virtual_gas_source:VirtualGasSource
|
module: unilabos.devices.virtual.virtual_gas_source:VirtualGasSource
|
||||||
type: python
|
type: python
|
||||||
@@ -934,6 +905,7 @@ virtual_gas_source:
|
|||||||
string: string
|
string: string
|
||||||
feedback: {}
|
feedback: {}
|
||||||
result: {}
|
result: {}
|
||||||
|
# 虚拟气源节点配置 - 气体供应设备,1个输出口提供加压气体
|
||||||
handles:
|
handles:
|
||||||
- handler_key: gassource
|
- handler_key: gassource
|
||||||
label: gassource
|
label: gassource
|
||||||
@@ -942,7 +914,7 @@ virtual_gas_source:
|
|||||||
io_type: source
|
io_type: source
|
||||||
data_source: executor
|
data_source: executor
|
||||||
data_key: fluid_out
|
data_key: fluid_out
|
||||||
description: "气源出气口"
|
description: "气源出气口,向容器或管路提供加压气体"
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
@@ -3,623 +3,5 @@ workstation:
|
|||||||
class:
|
class:
|
||||||
module: unilabos.ros.nodes.presets.protocol_node:ROS2ProtocolNode
|
module: unilabos.ros.nodes.presets.protocol_node:ROS2ProtocolNode
|
||||||
type: ros2
|
type: ros2
|
||||||
action_value_mappings:
|
schema:
|
||||||
AddProtocol:
|
properties: {}
|
||||||
type: Add
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
reagent: reagent
|
|
||||||
volume: volume
|
|
||||||
mass: mass
|
|
||||||
amount: amount
|
|
||||||
time: time
|
|
||||||
stir: stir
|
|
||||||
stir_speed: stir_speed
|
|
||||||
viscous: viscous
|
|
||||||
purpose: purpose
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: reagent
|
|
||||||
label: Reagent
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: reagent
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
AGVTransferProtocol:
|
|
||||||
type: AGVTransfer
|
|
||||||
goal:
|
|
||||||
from_repo: from_repo
|
|
||||||
from_repo_position: from_repo_position
|
|
||||||
to_repo: to_repo
|
|
||||||
to_repo_position: to_repo_position
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
|
|
||||||
CentrifugeProtocol:
|
|
||||||
type: Centrifuge
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
speed: speed
|
|
||||||
time: time
|
|
||||||
temp: temp
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
CleanProtocol:
|
|
||||||
type: Clean
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
solvent: solvent
|
|
||||||
volume: volume
|
|
||||||
temp: temp
|
|
||||||
repeats: repeats
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: solvent
|
|
||||||
label: Solvent
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: solvent
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
CleanVesselProtocol:
|
|
||||||
type: CleanVessel
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
solvent: solvent
|
|
||||||
volume: volume
|
|
||||||
temp: temp
|
|
||||||
repeats: repeats
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: solvent
|
|
||||||
label: Solvent
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: solvent
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
DissolveProtocol:
|
|
||||||
type: Dissolve
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
solvent: solvent
|
|
||||||
volume: volume
|
|
||||||
amount: amount
|
|
||||||
temp: temp
|
|
||||||
time: time
|
|
||||||
stir_speed: stir_speed
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: solvent
|
|
||||||
label: Solvent
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: solvent
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
EvacuateAndRefillProtocol:
|
|
||||||
type: EvacuateAndRefill
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
gas: gas
|
|
||||||
repeats: repeats
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
EvaporateProtocol:
|
|
||||||
type: Evaporate
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
pressure: pressure
|
|
||||||
temp: temp
|
|
||||||
time: time
|
|
||||||
stir_speed: stir_speed
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
FilterProtocol:
|
|
||||||
type: Filter
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
filtrate_vessel: filtrate_vessel
|
|
||||||
stir: stir
|
|
||||||
stir_speed: stir_speed
|
|
||||||
temp: temp
|
|
||||||
continue_heatchill: continue_heatchill
|
|
||||||
volume: volume
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: filtrate_vessel
|
|
||||||
label: Filtrate Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: filtrate_out
|
|
||||||
label: Filtrate Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
FilterThroughProtocol:
|
|
||||||
type: FilterThrough
|
|
||||||
goal:
|
|
||||||
from_vessel: from_vessel
|
|
||||||
to_vessel: to_vessel
|
|
||||||
filter_through: filter_through
|
|
||||||
eluting_solvent: eluting_solvent
|
|
||||||
eluting_volume: eluting_volume
|
|
||||||
eluting_repeats: eluting_repeats
|
|
||||||
residence_time: residence_time
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: from_vessel
|
|
||||||
label: From Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: to_vessel
|
|
||||||
label: To Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: solvent
|
|
||||||
label: Eluting Solvent
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: solvent
|
|
||||||
output:
|
|
||||||
- handler_key: from_vessel_out
|
|
||||||
label: From Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: to_vessel_out
|
|
||||||
label: To Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
HeatChillProtocol:
|
|
||||||
type: HeatChill
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
temp: temp
|
|
||||||
time: time
|
|
||||||
stir: stir
|
|
||||||
stir_speed: stir_speed
|
|
||||||
purpose: purpose
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
HeatChillStartProtocol:
|
|
||||||
type: HeatChillStart
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
temp: temp
|
|
||||||
purpose: purpose
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
HeatChillStopProtocol:
|
|
||||||
type: HeatChillStop
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
PumpTransferProtocol:
|
|
||||||
type: PumpTransfer
|
|
||||||
goal:
|
|
||||||
from_vessel: from_vessel
|
|
||||||
to_vessel: to_vessel
|
|
||||||
volume: volume
|
|
||||||
amount: amount
|
|
||||||
time: time
|
|
||||||
viscous: viscous
|
|
||||||
rinsing_solvent: rinsing_solvent
|
|
||||||
rinsing_volume: rinsing_volume
|
|
||||||
rinsing_repeats: rinsing_repeats
|
|
||||||
solid: solid
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: from_vessel
|
|
||||||
label: From Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: to_vessel
|
|
||||||
label: To Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: solvent
|
|
||||||
label: Rinsing Solvent
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: solvent
|
|
||||||
output:
|
|
||||||
- handler_key: from_vessel_out
|
|
||||||
label: From Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: to_vessel_out
|
|
||||||
label: To Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
RunColumnProtocol:
|
|
||||||
type: RunColumn
|
|
||||||
goal:
|
|
||||||
from_vessel: from_vessel
|
|
||||||
to_vessel: to_vessel
|
|
||||||
column: column
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: from_vessel
|
|
||||||
label: From Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: to_vessel
|
|
||||||
label: To Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: from_vessel_out
|
|
||||||
label: From Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: to_vessel_out
|
|
||||||
label: To Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
SeparateProtocol:
|
|
||||||
type: Separate
|
|
||||||
goal:
|
|
||||||
purpose: purpose
|
|
||||||
product_phase: product_phase
|
|
||||||
from_vessel: from_vessel
|
|
||||||
separation_vessel: separation_vessel
|
|
||||||
to_vessel: to_vessel
|
|
||||||
waste_phase_to_vessel: waste_phase_to_vessel
|
|
||||||
solvent: solvent
|
|
||||||
solvent_volume: solvent_volume
|
|
||||||
through: through
|
|
||||||
repeats: repeats
|
|
||||||
stir_time: stir_time
|
|
||||||
stir_speed: stir_speed
|
|
||||||
settling_time: settling_time
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: from_vessel
|
|
||||||
label: From Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: to_vessel
|
|
||||||
label: To Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: solvent
|
|
||||||
label: Solvent
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: solvent
|
|
||||||
output:
|
|
||||||
- handler_key: from_vessel_out
|
|
||||||
label: From Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: to_vessel_out
|
|
||||||
label: To Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
StartStirProtocol:
|
|
||||||
type: StartStir
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
stir_speed: stir_speed
|
|
||||||
purpose: purpose
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
StirProtocol:
|
|
||||||
type: Stir
|
|
||||||
goal:
|
|
||||||
stir_time: stir_time
|
|
||||||
stir_speed: stir_speed
|
|
||||||
settling_time: settling_time
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
StopStirProtocol:
|
|
||||||
type: StopStir
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
TransferProtocol:
|
|
||||||
type: Transfer
|
|
||||||
goal:
|
|
||||||
from_vessel: from_vessel
|
|
||||||
to_vessel: to_vessel
|
|
||||||
volume: volume
|
|
||||||
amount: amount
|
|
||||||
time: time
|
|
||||||
viscous: viscous
|
|
||||||
rinsing_solvent: rinsing_solvent
|
|
||||||
rinsing_volume: rinsing_volume
|
|
||||||
rinsing_repeats: rinsing_repeats
|
|
||||||
solid: solid
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: from_vessel
|
|
||||||
label: From Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: to_vessel
|
|
||||||
label: To Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: solvent
|
|
||||||
label: Rinsing Solvent
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: solvent
|
|
||||||
output:
|
|
||||||
- handler_key: from_vessel_out
|
|
||||||
label: From Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: to_vessel_out
|
|
||||||
label: To Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|
||||||
WashSolidProtocol:
|
|
||||||
type: WashSolid
|
|
||||||
goal:
|
|
||||||
vessel: vessel
|
|
||||||
solvent: solvent
|
|
||||||
volume: volume
|
|
||||||
filtrate_vessel: filtrate_vessel
|
|
||||||
temp: temp
|
|
||||||
stir: stir
|
|
||||||
stir_speed: stir_speed
|
|
||||||
time: time
|
|
||||||
repeats: repeats
|
|
||||||
feedback: {}
|
|
||||||
result: {}
|
|
||||||
handles:
|
|
||||||
input:
|
|
||||||
- handler_key: vessel
|
|
||||||
label: Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: solvent
|
|
||||||
label: Solvent
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: solvent
|
|
||||||
- handler_key: filtrate_vessel
|
|
||||||
label: Filtrate Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
output:
|
|
||||||
- handler_key: vessel_out
|
|
||||||
label: Vessel Out
|
|
||||||
data_type: resource
|
|
||||||
data_source: handle
|
|
||||||
data_key: vessel
|
|
||||||
- handler_key: filtrate_vessel_out
|
|
||||||
label: Filtrate Vessel
|
|
||||||
data_type: resource
|
|
||||||
data_source: executor
|
|
||||||
data_key: vessel
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
container:
|
container:
|
||||||
description: regular organic container
|
description: regular organic container
|
||||||
icon: Flask.webp
|
|
||||||
class:
|
class:
|
||||||
module: unilabos.resources.container:RegularContainer
|
module: unilabos.resources.container:RegularContainer
|
||||||
type: unilabos
|
type: unilabos
|
||||||
@@ -10,19 +9,13 @@ container:
|
|||||||
io_type: target
|
io_type: target
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
side: NORTH
|
side: NORTH
|
||||||
data_source: handle
|
|
||||||
data_key: fluid_in
|
|
||||||
- handler_key: bottom
|
- handler_key: bottom
|
||||||
label: bottom
|
label: bottom
|
||||||
io_type: source
|
io_type: source
|
||||||
data_type: fluid
|
data_type: fluid
|
||||||
side: SOUTH
|
side: SOUTH
|
||||||
data_source: handle
|
|
||||||
data_key: fluid_out
|
|
||||||
- handler_key: bind
|
- handler_key: bind
|
||||||
label: bind
|
label: bind
|
||||||
io_type: target
|
io_type: target
|
||||||
data_type: mechanical
|
data_type: mechanical
|
||||||
side: SOUTH
|
side: SOUTH
|
||||||
data_source: handle
|
|
||||||
data_key: mechanical_port
|
|
||||||
Reference in New Issue
Block a user