- 
                Notifications
    You must be signed in to change notification settings 
- Fork 7
Nested workflows with AiiDA #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| @GeigerJ2 I am wondering if ee can construct a more advanced example with two nested flows or a nested one combined with a function. This would help me a lot to debug my code. | 
| 
 Yes, fully agree! The current one is a bit pointless, as the outer graph just wraps the inputs/outputs but adds zero logic. I should have a working version of the  | 
| @JaGeo an example with additional pre- and post-processing around the inner graph: {
  "version": "0.1.1",
  "nodes": [
    { "id": 0, "value": 3, "type": "input", "name": "a" },
    { "id": 1, "value": 2, "type": "input", "name": "b" },
    { "id": 2, "value": 4, "type": "input", "name": "c" },
    { "id": 3, "type": "function", "value": "workflow.get_prod_and_div" },
    { "id": 4, "type": "workflow", "value": "prod_div.json" },
    { "id": 5, "type": "function", "value": "workflow.get_sum" },
    { "id": 6, "type": "output", "name": "final_result" }
  ],
  "edges": [
    { "target": 3, "targetPort": "x", "source": 0, "sourcePort": null },
    { "target": 3, "targetPort": "y", "source": 2, "sourcePort": null },
    { "target": 4, "targetPort": "x", "source": 3, "sourcePort": "prod" },
    { "target": 4, "targetPort": "y", "source": 3, "sourcePort": "div" },
    { "target": 5, "targetPort": "x", "source": 4, "sourcePort": "result" },
    { "target": 5, "targetPort": "y", "source": 1, "sourcePort": null },
    { "target": 6, "targetPort": null, "source": 5, "sourcePort": null }
  ]
}  | 
No description provided.