Fix type error in cluster_network with "m" configuration
This commit is contained in:
parent
91c9dd2b82
commit
fd01cb0a75
@ -164,6 +164,8 @@ Upcoming Release
|
||||
|
||||
* Fix duplicated years in `add_land_use_constraint_m`.
|
||||
|
||||
* Fix type error with `m` option in `cluster_network`.
|
||||
|
||||
PyPSA-Eur 0.10.0 (19th February 2024)
|
||||
=====================================
|
||||
|
||||
|
@ -471,7 +471,7 @@ if __name__ == "__main__":
|
||||
conventional_carriers = set(params.conventional_carriers)
|
||||
if snakemake.wildcards.clusters.endswith("m"):
|
||||
n_clusters = int(snakemake.wildcards.clusters[:-1])
|
||||
aggregate_carriers = params.conventional_carriers & aggregate_carriers
|
||||
aggregate_carriers = conventional_carriers & aggregate_carriers
|
||||
elif snakemake.wildcards.clusters.endswith("c"):
|
||||
n_clusters = int(snakemake.wildcards.clusters[:-1])
|
||||
aggregate_carriers = aggregate_carriers - conventional_carriers
|
||||
|
Loading…
Reference in New Issue
Block a user