Skip to content

Commit 171d264

Browse files
author
dtyagi
committed
updated docs.
1 parent 40934c2 commit 171d264

File tree

16 files changed

+159
-96
lines changed

16 files changed

+159
-96
lines changed

.github/workflows/run-benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ jobs:
5151
snakemake --use-conda --force --cores 'all'
5252
snakemake --use-conda --force --cores all \
5353
--reporter metadata4ing \
54-
--report-metadata4ing-paramscript parameter_extractor.py \
54+
--report-metadata4ing-paramscript ../common/parameter_extractor.py \
5555
--report-metadata4ing-filename metadata4ing_provenance
5656
unzip metadata4ing_provenance -d snakemake_provenance
5757
5858
- name: run_linear-elastic-plate-with-hole-benchmarks_nextflow
5959
shell: bash -l {0}
6060
run: |
6161
cd $GITHUB_WORKSPACE/benchmarks/linear-elastic-plate-with-hole/
62-
nextflow run main.nf -params-file workflow_config.json -plugins [email protected]
62+
nextflow run main.nf -params-file workflow_config.json -c ../common/nextflow.config -plugins [email protected]
6363
6464
- name: Archive Linear Elastic plate with a hole benchmark data for snakemake
6565
uses: actions/upload-artifact@v4
@@ -99,7 +99,7 @@ jobs:
9999
- name: Run plotting script
100100
shell: bash -l {0}
101101
run: |
102-
python benchmarks/linear-elastic-plate-with-hole/plot_provenance.py ./snakemake_provenance
102+
python benchmarks/linear-elastic-plate-with-hole/plot_metrics.py ./snakemake_provenance
103103
104104
- name: Upload PDF plot as artifact
105105
uses: actions/upload-artifact@v4

benchmarks/linear-elastic-plate-with-hole/nextflow.config renamed to benchmarks/common/nextflow.config

File renamed without changes.

benchmarks/linear-elastic-plate-with-hole/parameter_extractor.py renamed to benchmarks/common/parameter_extractor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
ParameterExtractorInterface,
55
)
66

7+
"""
8+
Parses the parameter configuration files and their corresponding output files. Returns a dictionary.
9+
https://github.com/izus-fokus/snakemake-report-plugin-metadata4ing
10+
11+
"""
12+
713
class ParameterExtractor(ParameterExtractorInterface):
814
def extract_params(self, rule_name: str, file_path: str) -> dict:
915
results = {}

benchmarks/linear-elastic-plate-with-hole/summarize_results.py renamed to benchmarks/common/summarize_results.py

File renamed without changes.

benchmarks/linear-elastic-plate-with-hole/Snakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ rule summary:
4141
input:
4242
# the summary is performed for all configurations saved into a single file
4343
# (snakemake_results/linear-elastic-plate-with-hole/fenics/summary.json)
44-
script = "summarize_results.py",
44+
script = "../common/summarize_results.py",
4545
parameters = expand("{param}", param=[configuration_to_parameter_file[c] for c in configurations]),
4646
mesh = expand(f"{result_dir}/mesh/mesh_{{configuration}}.msh", configuration=configurations),
4747
metrics = lambda wildcards: expand(

benchmarks/linear-elastic-plate-with-hole/environment_mesh.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: mesh-generation
2+
# Environment file for create_mesh.py script. Called by the main workflow.
3+
24
channels:
35
- conda-forge
46

benchmarks/linear-elastic-plate-with-hole/environment_postprocessing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: postprocessing
2+
# Environment file for summarize_results.py script. Called by the main workflow.
3+
24
channels:
35
- conda-forge
46
- defaults

benchmarks/linear-elastic-plate-with-hole/fenics/environment_simulation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: fenics_simulation
2+
# Environment file for fenics simulation scripts. Called by fenics tool workflow.
3+
24
channels:
35
- conda-forge
46

benchmarks/linear-elastic-plate-with-hole/kratos/environment_simulation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: kratos_simulation
2+
# Environment file for kratos simulation scripts. Called by kratos tool workflow.
3+
24
channels:
35
- conda-forge
46
dependencies:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ workflow {
137137

138138
//Summarizing results
139139
def ch_benchmark = Channel.value(params.benchmark)
140-
def ch_summarize_python_script = Channel.value(file('summarize_results.py'))
140+
def ch_summarize_python_script = Channel.value(file('../common/summarize_results.py'))
141141
summary(ch_summarize_python_script, \
142142
input_summary_configuration, \
143143
input_summary_parameter_file, \

0 commit comments

Comments
 (0)