cluster_network.py: allow cluster wildcard to be 'all'

This commit is contained in:
Fabian 2022-03-02 14:43:04 +01:00
parent 49ec143b0a
commit 752ff28538

View File

@ -343,6 +343,9 @@ if __name__ == "__main__":
if snakemake.wildcards.clusters.endswith('m'):
n_clusters = int(snakemake.wildcards.clusters[:-1])
aggregate_carriers = pd.Index(n.generators.carrier.unique()).difference(renewable_carriers)
elif snakemake.wildcards.clusters == 'all':
n_clusters = len(n.buses)
aggregate_carriers = None # All
else:
n_clusters = int(snakemake.wildcards.clusters)
aggregate_carriers = None # All