Missing arguments in simplify_network
's cluster
and clustering_for_n_clusters
#1268
Open
2 tasks done
Labels
bug
Something isn't working
Checklist
v0.5.2
and to the best of my knowledge, this issue is valid forv0.6.0
.pypsa-earth
environment, on a linux machineconda env -f envs/linux-pinned.yaml
.Describe the Bug
TL;DR:
arg
sinputs
andconfig
missing on Lines 609-624 and Lines 651-667 insimplify_network.py
inputs, outputs, config = snakemake.input, snakemake.output, snakemake.config
missing on Line 970 insimplify_network.py
kwarg
potential_mode
insimplify_network.py
not incluster_network.py
(to the best of my knowledge).Potential incongruence between
clustering_for_n_clusters
insimplify_network.py
andcluster_network.py
.see Line 557 for
clustering_for_n_clusters
incluster_network.py
, where we read:Now note the call in Line 651 to
clustering_for_n_clusters
insimplify_network.py
, which seems to miss twoarg
s (inputs
andconfig
) and includes akwarg
potential_mode
that I cannot trace:clustering = clustering_for_n_clusters( n, n_clusters, alternative_clustering, gadm_layer_id, geo_crs, country_list, distribution_cluster, build_shape_options, custom_busmap=False, aggregation_strategies=aggregation_strategies, - potential_mode=potential_mode, solver_name=solver_name, algorithm=algorithm, feature=feature, focus_weights=focus_weights, )
Potential solution
I believe that:
is needed in
__main__
ofsimplify_network.py
, e.g. around Line 970. Furthermore, the twoarg
sinputs
andconfig
should be inserted in Line 609-624and similarly in Line 651-667, as
The text was updated successfully, but these errors were encountered: