mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 21:11:12 +00:00
add create_workflow script and test
This commit is contained in:
14
test/workflow/merge_workflow.py
Normal file
14
test/workflow/merge_workflow.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import pytest
|
||||
import json
|
||||
from scripts.workflow import build_protocol_graph, draw_protocol_graph, draw_protocol_graph_with_ports
|
||||
|
||||
|
||||
@pytest.mark.parametrize("protocol_name", [
|
||||
"example_bio",
|
||||
# "bioyond_materials_liquidhandling_1",
|
||||
])
|
||||
def test_build_protocol_graph(protocol_name):
|
||||
d = json.load(open(f"{protocol_name}.json"))
|
||||
graph = build_protocol_graph(labware_info=d["reagent"], protocol_steps=d["workflow"], workstation_name="PRCXi")
|
||||
draw_protocol_graph_with_ports(graph, "graph.png")
|
||||
print(graph)
|
||||
Reference in New Issue
Block a user