Merge branch 'master' of github.com:PyPSA/pypsa-eur

This commit is contained in:
Fabian Neumann 2023-11-30 11:50:27 +01:00
commit bbc31f42d9
5 changed files with 6 additions and 6 deletions

View File

@ -91,7 +91,7 @@ None.
**Outputs**
- ``data/load_raw.csv``
- ``resources/load_raw.csv``
Rule ``retrieve_cost_data``

View File

@ -24,7 +24,7 @@ rule build_electricity_demand:
countries=config["countries"],
load=config["load"],
input:
ancient("data/load_raw.csv"),
ancient(RESOURCES + "load_raw.csv"),
output:
RESOURCES + "load.csv",
log:
@ -226,7 +226,7 @@ rule build_renewable_profiles:
),
ship_density=lambda w: (
RESOURCES + "shipdensity_raster.tif"
if "ship_threshold" in config["renewable"][w.technology].keys()
if config["renewable"][w.technology].get("ship_threshold", False)
else []
),
country_shapes=RESOURCES + "country_shapes.geojson",

View File

@ -195,7 +195,7 @@ if config["enable"]["retrieve"]:
static=True,
),
output:
"data/load_raw.csv",
RESOURCES + "load_raw.csv",
log:
LOGS + "retrieve_electricity_demand.log",
resources:

View File

@ -31,7 +31,7 @@ Relevant Settings
Inputs
------
- ``data/load_raw.csv``:
- ``resources/load_raw.csv``:
Outputs
-------

View File

@ -251,7 +251,7 @@ if __name__ == "__main__":
snakemake.input.corine, codes=codes, buffer=buffer, crs=3035
)
if "ship_threshold" in params:
if params.get("ship_threshold"):
shipping_threshold = (
params["ship_threshold"] * 8760 * 6
) # approximation because 6 years of data which is hourly collected