Merge branch 'master' of github.com:PyPSA/pypsa-eur into line-rating
This commit is contained in:
commit
dc954b0fc9
@ -326,6 +326,8 @@ def memory(w):
|
||||
break
|
||||
if w.clusters.endswith('m'):
|
||||
return int(factor * (18000 + 180 * int(w.clusters[:-1])))
|
||||
elif w.clusters == "all":
|
||||
return int(factor * (18000 + 180 * 4000))
|
||||
else:
|
||||
return int(factor * (10000 + 195 * int(w.clusters)))
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user