[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
bffb7cc17c
commit
9026e0920d
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from shutil import copy
|
||||
from pathlib import Path
|
||||
from shutil import copy
|
||||
|
||||
import yaml
|
||||
|
||||
|
@ -676,8 +676,7 @@ if __name__ == "__main__":
|
||||
logging.basicConfig(level=snakemake.config["logging"]["level"])
|
||||
|
||||
networks_dict = {
|
||||
(cluster, lv, opt + sector_opt, planning_horizon):
|
||||
"results/"
|
||||
(cluster, lv, opt + sector_opt, planning_horizon): "results/"
|
||||
+ snakemake.params.RDIR
|
||||
+ f"/postnetworks/elec_s{simpl}_{cluster}_lv{lv}_{opt}_{sector_opt}_{planning_horizon}.nc"
|
||||
for simpl in snakemake.config["scenario"]["simpl"]
|
||||
|
@ -531,9 +531,7 @@ def plot_carbon_budget_distribution(input_eurostat):
|
||||
fancybox=True, fontsize=18, loc=(0.01, 0.01), facecolor="white", frameon=True
|
||||
)
|
||||
|
||||
path_cb_plot = (
|
||||
"results/" + snakemake.params.RDIR + "/graphs/"
|
||||
)
|
||||
path_cb_plot = "results/" + snakemake.params.RDIR + "/graphs/"
|
||||
plt.savefig(path_cb_plot + "carbon_budget_plot.pdf", dpi=300)
|
||||
|
||||
|
||||
|
@ -3343,11 +3343,7 @@ if __name__ == "__main__":
|
||||
if not "cb" in o:
|
||||
continue
|
||||
limit_type = "carbon budget"
|
||||
fn = (
|
||||
"results/"
|
||||
+ snakemake.params.RDIR
|
||||
+ "/csvs/carbon_budget_distribution.csv"
|
||||
)
|
||||
fn = "results/" + snakemake.params.RDIR + "/csvs/carbon_budget_distribution.csv"
|
||||
if not os.path.exists(fn):
|
||||
emissions_scope = snakemake.config["energy"]["emissions"]
|
||||
report_year = snakemake.config["energy"]["eurostat_report_year"]
|
||||
|
Loading…
Reference in New Issue
Block a user