File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
benchmarks/linear-elastic-plate-with-hole/FEniCS Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ def get_configuration(file):
24
24
# Create a dictionary of configurations (key is the name of the parameter file)
25
25
# configurations: {Path("parameters_1.json"): "1", ...}
26
26
configurations = {file : get_configuration (file ) for file in files if file .is_file ()}
27
+
28
+ # Check for duplicate configuration values
29
+ config_values = list (configurations .values ())
30
+ duplicates = set ([x for x in config_values if config_values .count (x ) > 1 ])
31
+ if duplicates :
32
+ raise ValueError (f"Duplicate configuration values found in parameter files: { ', ' .join (duplicates )} " )
33
+
27
34
# Reverse mapping for easy lookup by configuration name
28
35
configuration_to_parameter_file = {v : str (k ) for k , v in configurations .items ()}
29
36
@@ -35,6 +42,9 @@ rule all:
35
42
input :
36
43
expand (f"{ result_dir } /{{tool}}/summary.json" , tool = tools ),
37
44
45
+
46
+
47
+
38
48
rule create_mesh :
39
49
input :
40
50
script = "create_mesh.py" ,
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ dependencies:
11
11
- conda
12
12
- pip
13
13
- pip :
14
- - " --editable=git+https://github.com/M-Jafarkhani /snakemake-report-plugin-metadata4ing.git#egg=snakemake-report-plugin-metadata4ing"
14
+ - " --editable=git+https://github.com/izus-fokus /snakemake-report-plugin-metadata4ing.git#egg=snakemake-report-plugin-metadata4ing"
You can’t perform that action at this time.
0 commit comments