fix to restore compatibility with PyPSA v0.26.0
This commit is contained in:
parent
dffe784704
commit
c304738ea5
@ -469,6 +469,9 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
n = pypsa.Network(snakemake.input.network)
|
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')
|
||||||
|
|
||||||
exclude_carriers = params.cluster_network["exclude_carriers"]
|
exclude_carriers = params.cluster_network["exclude_carriers"]
|
||||||
aggregate_carriers = set(n.generators.carrier) - set(exclude_carriers)
|
aggregate_carriers = set(n.generators.carrier) - set(exclude_carriers)
|
||||||
conventional_carriers = set(params.conventional_carriers)
|
conventional_carriers = set(params.conventional_carriers)
|
||||||
|
@ -536,6 +536,9 @@ if __name__ == "__main__":
|
|||||||
n = pypsa.Network(snakemake.input.network)
|
n = pypsa.Network(snakemake.input.network)
|
||||||
Nyears = n.snapshot_weightings.objective.sum() / 8760
|
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, trafo_map = simplify_network_to_380(n)
|
n, trafo_map = simplify_network_to_380(n)
|
||||||
|
|
||||||
technology_costs = load_costs(
|
technology_costs = load_costs(
|
||||||
|
Loading…
Reference in New Issue
Block a user