simplify_network: Include a special case if renewable carriers are skipped

This commit is contained in:
Jonas Hoersch 2019-01-22 10:14:05 +01:00
parent bfb92a5d29
commit 4247051c3c

View File

@ -278,8 +278,9 @@ if __name__ == "__main__":
"The `potential` configuration option must agree for all renewable carriers, for now!"
)
return v
potential_mode = consense(pd.Series([snakemake.config['renewable'][tech]['potential']
potential_mode = (consense(pd.Series([snakemake.config['renewable'][tech]['potential']
for tech in renewable_carriers]))
if len(renewable_carriers) > 0 else 'conservative')
clustering = clustering_for_n_clusters(n, n_clusters, potential_mode=potential_mode)
n = clustering.network