Skip to content

Commit d1ecf23

Browse files
committed
regret_runs only for those scens that will be analysed
1 parent 546a718 commit d1ecf23

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Snakefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,11 @@ rule plot_scenario_comparison_regrets:
11611161
exported_variables=expand(
11621162
RESULTS
11631163
+ "regret_variables/{sensitivity}/regret_variables_{decision}_full.xlsx",
1164-
run=config_provider("run", "name"),
1164+
run=lambda w: [
1165+
r
1166+
for r in config_provider("run", "name")(w)
1167+
if r in ["LowDemand", "HighDemand"]
1168+
],
11651169
decision=config_provider("run", "name"),
11661170
allow_missing=True,
11671171
),

config/config.de.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
# docs in https://pypsa-eur.readthedocs.io/en/latest/configuration.html#run
66
run:
7-
prefix: 20250926_improve_power_limits
7+
prefix: 20250926_less_regret_runs
88
name:
99
# - ExPol
1010
# - KN2045_Mix
11-
- HighDemand
11+
# - HighDemand
1212
- LowDemand
1313
- LowDemandLowRES
1414
#- HighDemandNoFlex # !!! CAVEAT The 'NoFlex' substring in the scenario name determines how the regrets are computed!!!

0 commit comments

Comments
 (0)