Skip to content

Commit 3bbda19

Browse files
committed
add the nested examples
1 parent f8ba185 commit 3bbda19

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"id": "initial_id",
7+
"metadata": {
8+
"collapsed": true
9+
},
10+
"outputs": [],
11+
"source": "from python_workflow_definition.aiida import load_workflow_json"
12+
}
13+
],
14+
"metadata": {
15+
"kernelspec": {
16+
"display_name": "Python 3",
17+
"language": "python",
18+
"name": "python3"
19+
},
20+
"language_info": {
21+
"codemirror_mode": {
22+
"name": "ipython",
23+
"version": 2
24+
},
25+
"file_extension": ".py",
26+
"mimetype": "text/x-python",
27+
"name": "python",
28+
"nbconvert_exporter": "python",
29+
"pygments_lexer": "ipython2",
30+
"version": "2.7.6"
31+
}
32+
},
33+
"nbformat": 4,
34+
"nbformat_minor": 5
35+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": "0.1.1",
3+
"nodes": [
4+
{ "id": 0, "type": "workflow", "value": "prod_div.json" },
5+
{ "id": 1, "value": 1, "type": "input", "name": "a" },
6+
{ "id": 2, "value": 2, "type": "input", "name": "b" },
7+
{ "id": 3, "type": "output", "name": "final_result" }
8+
],
9+
"edges": [
10+
{ "target": 0, "targetPort": "x", "source": 1, "sourcePort": null },
11+
{ "target": 0, "targetPort": "y", "source": 2, "sourcePort": null },
12+
{ "target": 3, "targetPort": "null", "source": 0, "sourcePort": "result" }
13+
]
14+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "0.1.1",
3+
"nodes": [
4+
{ "id": 0, "type": "function", "value": "workflow.get_prod_and_div" },
5+
{ "id": 1, "type": "function", "value": "workflow.get_sum" },
6+
{ "id": 2, "type": "function", "value": "workflow.get_square" },
7+
{ "id": 3, "type": "input", "value": 1, "name": "x" },
8+
{ "id": 4, "type": "input", "value": 2, "name": "y" },
9+
{ "id": 5, "type": "output", "name": "result" }
10+
],
11+
"edges": [
12+
{ "target": 0, "targetPort": "x", "source": 3, "sourcePort": null },
13+
{ "target": 0, "targetPort": "y", "source": 4, "sourcePort": null },
14+
{ "target": 1, "targetPort": "x", "source": 0, "sourcePort": "prod" },
15+
{ "target": 1, "targetPort": "y", "source": 0, "sourcePort": "div" },
16+
{ "target": 2, "targetPort": "x", "source": 1, "sourcePort": null },
17+
{ "target": 5, "targetPort": null, "source": 2, "sourcePort": null }
18+
]
19+
}

0 commit comments

Comments
 (0)