We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ba185 commit 3bbda19Copy full SHA for 3bbda19
4 files changed
example_workflows/nested/jobflow.ipynb
@@ -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
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
+}
example_workflows/nested/main.pwd.json
@@ -0,0 +1,14 @@
+ "version": "0.1.1",
+ "nodes": [
+ { "id": 0, "type": "workflow", "value": "prod_div.json" },
+ { "id": 1, "value": 1, "type": "input", "name": "a" },
+ { "id": 2, "value": 2, "type": "input", "name": "b" },
+ { "id": 3, "type": "output", "name": "final_result" }
+ "edges": [
+ { "target": 0, "targetPort": "x", "source": 1, "sourcePort": null },
+ { "target": 0, "targetPort": "y", "source": 2, "sourcePort": null },
+ { "target": 3, "targetPort": "null", "source": 0, "sourcePort": "result" }
+ ]
example_workflows/nested/prod_div.json
@@ -0,0 +1,19 @@
+ { "id": 0, "type": "function", "value": "workflow.get_prod_and_div" },
+ { "id": 1, "type": "function", "value": "workflow.get_sum" },
+ { "id": 2, "type": "function", "value": "workflow.get_square" },
+ { "id": 3, "type": "input", "value": 1, "name": "x" },
+ { "id": 4, "type": "input", "value": 2, "name": "y" },
+ { "id": 5, "type": "output", "name": "result" }
+ { "target": 0, "targetPort": "x", "source": 3, "sourcePort": null },
+ { "target": 0, "targetPort": "y", "source": 4, "sourcePort": null },
+ { "target": 1, "targetPort": "x", "source": 0, "sourcePort": "prod" },
+ { "target": 1, "targetPort": "y", "source": 0, "sourcePort": "div" },
+ { "target": 2, "targetPort": "x", "source": 1, "sourcePort": null },
+ { "target": 5, "targetPort": null, "source": 2, "sourcePort": null }
example_workflows/arithmetic/workflow.py example_workflows/nested/workflow.pyexample_workflows/arithmetic/workflow.py renamed to example_workflows/nested/workflow.py
0 commit comments