[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
502b3a61ba
commit
b2c19eda40
@ -710,10 +710,10 @@ def base_network(
|
||||
links = _set_electrical_parameters_links(links, config, links_p_nom)
|
||||
converters = _set_electrical_parameters_converters(converters, config)
|
||||
snapshots = {
|
||||
"start":config["snapshots"]["start"],
|
||||
"end":config["snapshots"]["end"],
|
||||
"inclusive":config["snapshots"]["inclusive"],
|
||||
}
|
||||
"start": config["snapshots"]["start"],
|
||||
"end": config["snapshots"]["end"],
|
||||
"inclusive": config["snapshots"]["inclusive"],
|
||||
}
|
||||
|
||||
n = pypsa.Network()
|
||||
n.name = "PyPSA-Eur"
|
||||
|
@ -149,10 +149,10 @@ if __name__ == "__main__":
|
||||
configure_logging(snakemake)
|
||||
|
||||
snapshots = {
|
||||
"start":snakemake.config["snapshots"]["start"],
|
||||
"end":snakemake.config["snapshots"]["end"],
|
||||
"inclusive":snakemake.config["snapshots"]["inclusive"],
|
||||
}
|
||||
"start": snakemake.config["snapshots"]["start"],
|
||||
"end": snakemake.config["snapshots"]["end"],
|
||||
"inclusive": snakemake.config["snapshots"]["inclusive"],
|
||||
}
|
||||
|
||||
n = pypsa.Network(snakemake.input.base_network)
|
||||
time = pd.date_range(freq="h", **snapshots)
|
||||
|
@ -212,10 +212,10 @@ if __name__ == "__main__":
|
||||
capacity_per_sqkm = params["capacity_per_sqkm"]
|
||||
p_nom_max_meth = params.get("potential", "conservative")
|
||||
snapshots = {
|
||||
"start":snakemake.config["snapshots"]["start"],
|
||||
"end":snakemake.config["snapshots"]["end"],
|
||||
"inclusive":snakemake.config["snapshots"]["inclusive"],
|
||||
}
|
||||
"start": snakemake.config["snapshots"]["start"],
|
||||
"end": snakemake.config["snapshots"]["end"],
|
||||
"inclusive": snakemake.config["snapshots"]["inclusive"],
|
||||
}
|
||||
|
||||
if isinstance(params.get("corine", {}), list):
|
||||
params["corine"] = {"grid_codes": params["corine"]}
|
||||
|
Loading…
Reference in New Issue
Block a user