From 9e143345bddb840f25da84e7c0f334b92b9434f2 Mon Sep 17 00:00:00 2001 From: Fabian Date: Thu, 29 Jun 2023 19:24:38 +0200 Subject: [PATCH] follow up on #686 --- scripts/build_powerplants.py | 1 + scripts/build_renewable_profiles.py | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/build_powerplants.py b/scripts/build_powerplants.py index 7f396e1e..f25f111b 100755 --- a/scripts/build_powerplants.py +++ b/scripts/build_powerplants.py @@ -149,6 +149,7 @@ if __name__ == "__main__": logging.warning(f"No powerplants known in: {', '.join(countries_wo_ppl)}") substations = n.buses.query("substation_lv") + ppl = ppl.dropna(subset=["lat", "lon"]) ppl = map_country_bus(ppl, substations) bus_null_b = ppl["bus"].isnull() diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index aa23be3a..864d54dc 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -204,6 +204,7 @@ if __name__ == "__main__": nprocesses = int(snakemake.threads) noprogress = snakemake.config["run"].get("disable_progressbar", True) + noprogress = noprogress or not snakemake.config["atlite"]["show_progress"] params = snakemake.params.renewable[snakemake.wildcards.technology] resource = params["resource"] # pv panel params / wind turbine params correction_factor = params.get("correction_factor", 1.0)