Minor bugfixes in postprocessing code

This commit is contained in:
Koen van Greevenbroek 2024-03-01 14:37:45 +01:00
parent e891305c9d
commit 0c7c0a8585
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ rule plot_elec_statistics:
output:
**{
f"{plot}_bar": RESULTS
+ f"figures/statistics_{plot}_bar_elec{weather_year}_s{simpl}_{clusters}_ec_l{ll}_{opts}.pdf"
+ f"figures/statistics_{plot}_bar_elec{{weather_year}}_s{{simpl}}_{{clusters}}_ec_l{{ll}}_{{opts}}.pdf"
for plot in STATISTICS_BARPLOTS
},
barplots_touch=RESULTS

View File

@ -681,7 +681,7 @@ if __name__ == "__main__":
networks_dict = {
(weather_year, cluster, ll, opt + sector_opt, planning_horizon): "results/"
+ snakemake.params.RDIR
+ f"/postnetworks/elec_s{simpl}_{cluster}_l{ll}_{opt}_{sector_opt}_{planning_horizon}.nc"
+ f"postnetworks/elec{weather_year}_s{simpl}_{cluster}_l{ll}_{opt}_{sector_opt}_{planning_horizon}.nc"
for weather_year in snakemake.params.scenario["weather_year"]
for simpl in snakemake.params.scenario["simpl"]
for cluster in snakemake.params.scenario["clusters"]