Merge pull request #687 from PyPSA/powerplants-dropna
follow up on #686
This commit is contained in:
commit
f4847ba907
@ -149,6 +149,7 @@ if __name__ == "__main__":
|
|||||||
logging.warning(f"No powerplants known in: {', '.join(countries_wo_ppl)}")
|
logging.warning(f"No powerplants known in: {', '.join(countries_wo_ppl)}")
|
||||||
|
|
||||||
substations = n.buses.query("substation_lv")
|
substations = n.buses.query("substation_lv")
|
||||||
|
ppl = ppl.dropna(subset=["lat", "lon"])
|
||||||
ppl = map_country_bus(ppl, substations)
|
ppl = map_country_bus(ppl, substations)
|
||||||
|
|
||||||
bus_null_b = ppl["bus"].isnull()
|
bus_null_b = ppl["bus"].isnull()
|
||||||
|
@ -204,6 +204,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
nprocesses = int(snakemake.threads)
|
nprocesses = int(snakemake.threads)
|
||||||
noprogress = snakemake.config["run"].get("disable_progressbar", True)
|
noprogress = snakemake.config["run"].get("disable_progressbar", True)
|
||||||
|
noprogress = noprogress or not snakemake.config["atlite"]["show_progress"]
|
||||||
params = snakemake.params.renewable[snakemake.wildcards.technology]
|
params = snakemake.params.renewable[snakemake.wildcards.technology]
|
||||||
resource = params["resource"] # pv panel params / wind turbine params
|
resource = params["resource"] # pv panel params / wind turbine params
|
||||||
correction_factor = params.get("correction_factor", 1.0)
|
correction_factor = params.get("correction_factor", 1.0)
|
||||||
|
Loading…
Reference in New Issue
Block a user