Merge branch 'exclude_carrier_clustering' of github.com:p-glaum/pypsa-eur into exclude_carrier_clustering
This commit is contained in:
commit
04dae75779
@ -475,7 +475,9 @@ if __name__ == "__main__":
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
exclude_carriers = snakemake.config["clustering"]["cluster_network"].get("exclude_carriers", [])
|
exclude_carriers = snakemake.config["clustering"]["cluster_network"].get(
|
||||||
|
"exclude_carriers", []
|
||||||
|
)
|
||||||
aggregate_carriers = set(n.generators.carrier) - set(exclude_carriers)
|
aggregate_carriers = set(n.generators.carrier) - set(exclude_carriers)
|
||||||
if snakemake.wildcards.clusters.endswith("m"):
|
if snakemake.wildcards.clusters.endswith("m"):
|
||||||
n_clusters = int(snakemake.wildcards.clusters[:-1])
|
n_clusters = int(snakemake.wildcards.clusters[:-1])
|
||||||
|
@ -377,7 +377,9 @@ def simplify_links(n, costs, config, output, aggregation_strategies=dict()):
|
|||||||
|
|
||||||
logger.debug("Collecting all components using the busmap")
|
logger.debug("Collecting all components using the busmap")
|
||||||
|
|
||||||
exclude_carriers = config["clustering"]["simplify_network"].get("exclude_carriers", [])
|
exclude_carriers = config["clustering"]["simplify_network"].get(
|
||||||
|
"exclude_carriers", []
|
||||||
|
)
|
||||||
|
|
||||||
_aggregate_and_move_components(
|
_aggregate_and_move_components(
|
||||||
n,
|
n,
|
||||||
@ -397,7 +399,9 @@ def remove_stubs(n, costs, config, output, aggregation_strategies=dict()):
|
|||||||
|
|
||||||
connection_costs_to_bus = _compute_connection_costs_to_bus(n, busmap, costs, config)
|
connection_costs_to_bus = _compute_connection_costs_to_bus(n, busmap, costs, config)
|
||||||
|
|
||||||
exclude_carriers = config["clustering"]["simplify_network"].get("exclude_carriers", [])
|
exclude_carriers = config["clustering"]["simplify_network"].get(
|
||||||
|
"exclude_carriers", []
|
||||||
|
)
|
||||||
|
|
||||||
_aggregate_and_move_components(
|
_aggregate_and_move_components(
|
||||||
n,
|
n,
|
||||||
|
Loading…
Reference in New Issue
Block a user