Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 17, 2023
1 parent 545f8c0 commit 7c5cf79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions config.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7c5cf79

Please sign in to comment.