From 7c5cf7905ff7c74fb5e7c96fad771ac0a794a167 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:33:50 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- Snakefile | 4 +++- config.default.yaml | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Snakefile b/Snakefile index 39411d9a..de295ebd 100644 --- a/Snakefile +++ b/Snakefile @@ -45,12 +45,14 @@ subworkflow pypsaearth: configfile: "./config.pypsa-earth.yaml" + if config["enable"].get("retrieve_cost_data", True): rule retrieve_cost_data: input: HTTP.remote( - f"raw.githubusercontent.com/PyPSA/technology-data/{config['costs']['version']}/outputs/costs" + "_{planning_horizons}.csv", + f"raw.githubusercontent.com/PyPSA/technology-data/{config['costs']['version']}/outputs/costs" + + "_{planning_horizons}.csv", keep_local=True, ), output: diff --git a/config.default.yaml b/config.default.yaml index d379b040..76f22b25 100644 --- a/config.default.yaml +++ b/config.default.yaml @@ -47,7 +47,7 @@ H2_network: false H2_network_limit: 2000 #GWkm H2_repurposed_network: false -enable: +enable: retrieve_cost_data: true # if true, the workflow overwrites the cost data saved in data/costs again fossil_reserves: @@ -87,7 +87,7 @@ costs: discountrate: [0.071] #, 0.086, 0.111] # [EUR/USD] ECB: https://www.ecb.europa.eu/stats/exchange/eurofxref/html/eurofxref-graph-usd.en.html # noqa: E501 USD2013_to_EUR2013: 0.7532 - + # Marginal and capital costs can be overwritten # capital_cost: # onwind: 500