[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
0721a29a02
commit
f0eae99a07
@ -470,7 +470,7 @@ if __name__ == "__main__":
|
||||
n = pypsa.Network(snakemake.input.network)
|
||||
|
||||
# remove integer outputs for compatibility with PyPSA v0.26.0
|
||||
n.generators.drop("n_mod", axis=1, inplace=True, errors='ignore')
|
||||
n.generators.drop("n_mod", axis=1, inplace=True, errors="ignore")
|
||||
|
||||
exclude_carriers = params.cluster_network["exclude_carriers"]
|
||||
aggregate_carriers = set(n.generators.carrier) - set(exclude_carriers)
|
||||
|
@ -447,7 +447,9 @@ def calculate_metrics(n, label, metrics):
|
||||
metrics.at["co2_shadow", label] = n.global_constraints.at["CO2Limit", "mu"]
|
||||
|
||||
if "co2_sequestration_limit" in n.global_constraints.index:
|
||||
metrics.at["co2_storage_shadow", label] = n.global_constraints.at["co2_sequestration_limit", "mu"]
|
||||
metrics.at["co2_storage_shadow", label] = n.global_constraints.at[
|
||||
"co2_sequestration_limit", "mu"
|
||||
]
|
||||
return metrics
|
||||
|
||||
|
||||
|
@ -537,7 +537,7 @@ if __name__ == "__main__":
|
||||
Nyears = n.snapshot_weightings.objective.sum() / 8760
|
||||
|
||||
# remove integer outputs for compatibility with PyPSA v0.26.0
|
||||
n.generators.drop("n_mod", axis=1, inplace=True, errors='ignore')
|
||||
n.generators.drop("n_mod", axis=1, inplace=True, errors="ignore")
|
||||
|
||||
n, trafo_map = simplify_network_to_380(n)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user