pytrace/tests/assets/main.flow

61 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2026-01-19 00:49:55 +08:00
{
"name": "Main Expand Flow",
"nodes": [
{
"id": "main_input",
"class_id": "InputTraceNode",
"params": {
"x": { "mode": "context", "value": "inputs.x" },
"y": { "mode": "static", "value": 5.0 }
}
},
{
"id": "test_y_input",
"class_id": "TestYNode",
"params": {
"x": { "mode": "context", "value": "inputs.x" },
"y": { "mode": "static", "value": 5.0 }
}
},
{
"id": "sub_call",
"class_id": "FlowLoaderNode",
"params": {
"flow_path": { "mode": "static", "value": "tests/assets/math_sub.flow" }
}
},
{
"id": "main_output",
"class_id": "OutputTraceNode",
"params": {}
}
],
"edges": [
{
"source_id": "main_input", "source_port": "x",
"target_id": "sub_call", "target_port": "a",
"dimension_mode": "none"
},
{
"source_id": "test_y_input", "source_port": "y",
"target_id": "sub_call", "target_port": "b",
"dimension_mode": "expand"
},
{
"source_id": "sub_call", "source_port": "result",
"target_id": "main_output", "target_port": "final_result",
"dimension_mode": "expand"
}
],
"interface": {
"inputs": {
"x": "int",
"y": "int"
},
"outputs": {
"final_result": "int"
},
"remotes":{
}
}
}