Skip to content

Commit

Permalink
Merge branch 'retrieve_costs' of https://github.com/pypsa-meets-earth…
Browse files Browse the repository at this point in the history
…/pypsa-earth-sec into retrieve_costs
  • Loading branch information
energyLS committed Oct 17, 2023
2 parents 2b0d343 + 7c5cf79 commit db0888b
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 db0888b

Please sign in to comment.