Skip to content

Commit

Permalink
more workflow docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudz committed Oct 28, 2024
1 parent 1162a9f commit f9e1653
Show file tree
Hide file tree
Showing 7 changed files with 756 additions and 4,776 deletions.
1 change: 1 addition & 0 deletions docs/how_to/create_custom_workflows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# How to use nomad-utility-workflows to create custom workflows
Binary file added tests/utils/raw_entry_data.zip
Binary file not shown.
40 changes: 40 additions & 0 deletions tests/utils/test_workflow_2.archive.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
workflow2:
inputs:
- name: global workflow input
section: /uploads/<input_upload_id>/archive/mainfile/<input_mainfile>#/run/0/method/0
- name: input system from 0
section: ../upload/archive/mainfile/<task_1_mainfile>#/run/0/system/0
outputs:
- name: global workflow output
section: ../upload/archive/mainfile/<output_mainfile>#/workflow2/results/-1
- name: output calculation from 1
section: ../upload/archive/mainfile/<task_1_mainfile>#/run/0/calculation/-1
- name: output calculation from 2
section: ../upload/archive/mainfile/<task_2_mainfile>#/run/0/calculation/-1
tasks:
- m_def: nomad.datamodel.metainfo.workflow.TaskReference
name: '1'
inputs:
- name: input system from 0
section: ../upload/archive/mainfile/<task_1_mainfile>#/run/0/system/0
outputs:
- name: output calculation from 1
section: ../upload/archive/mainfile/<task_1_mainfile>#/run/0/calculation/-1
- m_def: nomad.datamodel.metainfo.workflow.Workflow
name: '2'
task: ../upload/archive/mainfile/<task_2_mainfile>#/workflow2
inputs:
- name: input system from 1
section: ../upload/archive/mainfile/<task_1_mainfile>#/run/0/system/-1
outputs:
- name: output calculation from 2
section: ../upload/archive/mainfile/<task_2_mainfile>#/run/0/calculation/-1
- m_def: nomad.datamodel.metainfo.workflow.Workflow
name: '3'
task: ../upload/archive/mainfile/<task_3_mainfile>#/workflow2
inputs:
- name: DEFAULT input system from 2
section: ../upload/archive/mainfile/<task_2_mainfile>#/run/-1/system/-1
outputs:
- name: DEFAULT output calculation from 3
section: ../upload/archive/mainfile/<task_3_mainfile>#/run/-1/calculation/-1
40 changes: 40 additions & 0 deletions tests/utils/test_workflow_BU.archive.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
workflow2:
inputs:
- name: global workflow input
section: /uploads/<input_upload_id>/archive/mainfile/<input_mainfile>#/run/0/method/0
- name: input system from 0
section: ../upload/archive/mainfile/<task_1_mainfile>#/run/0/system/0
outputs:
- name: global workflow output
section: ../upload/archive/mainfile/<output_mainfile>#/workflow2/results/-1
- name: output calculation from 1
section: ../upload/archive/mainfile/<task_1_mainfile>#/run/0/calculation/-1
- name: output calculation from 2
section: ../upload/archive/mainfile/<task_2_mainfile>#/run/0/calculation/-1
tasks:
- m_def: nomad.datamodel.metainfo.workflow.TaskReference
name: '1'
inputs:
- name: input system from 0
section: ../upload/archive/mainfile/<task_1_mainfile>#/run/0/system/0
outputs:
- name: output calculation from 1
section: ../upload/archive/mainfile/<task_1_mainfile>#/run/0/calculation/-1
- m_def: nomad.datamodel.metainfo.workflow.Workflow
name: '2'
task: ../upload/archive/mainfile/<task_2_mainfile>#/workflow2
inputs:
- name: input system from 1
section: ../upload/archive/mainfile/<task_1_mainfile>#/run/0/system/-1
outputs:
- name: output calculation from 2
section: ../upload/archive/mainfile/<task_2_mainfile>#/run/0/calculation/-1
- m_def: nomad.datamodel.metainfo.workflow.Workflow
name: '3'
task: ../upload/archive/mainfile/<task_3_mainfile>#/workflow2
inputs:
- name: DEFAULT input system from 2
section: ../upload/archive/mainfile/<task_2_mainfile>#/run/-1/system/-1
outputs:
- name: DEFAULT output calculation from 3
section: ../upload/archive/mainfile/<task_3_mainfile>#/run/-1/calculation/-1
Loading

0 comments on commit f9e1653

Please sign in to comment.