Skip to content

Commit 8802bb2

Browse files
div-tygdtyagi
andauthored
25 nextflow implementation changed structure (#27)
* Prileminary nextflow workflow implmenting the new file handling structure. * included summary process to the workflow * wrote kratos workflow in nextflow * nextflow workflow implementation with fenics & kratos * updated actions file to store the nextflow output as artifacts correctly. * - Improved nextflow worflow code. - Improved artifact storage. - A new Python script for summarising simulation results. - Modified the generate_config.py * fixed the indentation in snakefile of kratos * artifact naming update * comments added for comprehensibility * updated nextflow.config * edited generate_config.py --------- Co-authored-by: dtyagi <[email protected]>
1 parent 8abcd65 commit 8802bb2

26 files changed

+441
-869
lines changed

.github/workflows/run-benchmark.yml

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,46 +38,35 @@ jobs:
3838
- name: Update environment
3939
run: mamba env update -n model-validation -f environment_benchmarks.yml
4040

41-
- name: run-linear-elastic-plate-with-hole-benchmarks
41+
- name: generate-config-files
4242
shell: bash -l {0}
4343
run: |
4444
cd $GITHUB_WORKSPACE/benchmarks/linear-elastic-plate-with-hole/
4545
python generate_config.py
46+
47+
- name: run_linear-elastic-plate-with-hole-benchmarks_snakemake
48+
shell: bash -l {0}
49+
run: |
50+
cd $GITHUB_WORKSPACE/benchmarks/linear-elastic-plate-with-hole/
4651
snakemake --use-conda --force --cores 'all'
4752
snakemake --use-conda --force --cores 'all' --reporter metadata4ing
4853
49-
- name: run-fenics-nextflow-benchmark
54+
- name: run_linear-elastic-plate-with-hole-benchmarks_nextflow
5055
shell: bash -l {0}
5156
run: |
52-
cd $GITHUB_WORKSPACE/benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/
53-
nextflow run main.nf -plugins [email protected]
54-
55-
- name: Archive Linear Elastic plate with a hole benchmark data from snakemake
56-
uses: actions/upload-artifact@v4
57-
with:
58-
name: linear-elastic-plate-with-hole_snakemake
59-
path: |
60-
benchmarks/linear-elastic-plate-with-hole/snakemake_results/
57+
cd $GITHUB_WORKSPACE/benchmarks/linear-elastic-plate-with-hole/
58+
nextflow run main.nf -params-file workflow_config.json -plugins [email protected]
6159
62-
- name: Archive Linear Elastic plate with a hole benchmark data from snakemake provenance
60+
- name: Archive Linear Elastic plate with a hole benchmark data for snakemake
6361
uses: actions/upload-artifact@v4
6462
with:
65-
name: linear-elastic-plate-with-hole_snakemake_provenance
63+
name: snakemake_results_linear-elastic-plate-with-hole
6664
path: |
6765
benchmarks/linear-elastic-plate-with-hole/*.zip
6866
69-
70-
- name: Archive fenics nextflow data
71-
uses: actions/upload-artifact@v4
72-
with:
73-
name: fenics-nextflow-output
74-
path: |
75-
benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/work/**
76-
!benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/work/conda/**
77-
78-
- name: Archive fenics nextflow provenance
67+
- name: Archive Linear Elastic plate with a hole benchmark data for nextflow
7968
uses: actions/upload-artifact@v4
8069
with:
81-
name: fenics-nextflow-provenance
70+
name: nextflow_results_linear-elastic-plate-with-hole
8271
path: |
83-
benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/provenance.json
72+
benchmarks/linear-elastic-plate-with-hole/nextflow_results/

benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/create_input_files.py

Lines changed: 0 additions & 98 deletions
This file was deleted.

benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/environment.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/experiment.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/main.nf

Lines changed: 0 additions & 112 deletions
This file was deleted.

benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/nextflow.config

Lines changed: 0 additions & 21 deletions
This file was deleted.

benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/parameters_003125.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

benchmarks/linear-elastic-plate-with-hole/FEniCS_nextflow/parameters_00625.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)