dynamo-release
dynamo-release copied to clipboard
support setting a resolution for vectorfield clustering
Changes:
-
add **kwargs for the leiden(), louvain(), infomap() function calls in dyn.vf.cluster_field(), otherwise the function can only use default resolution settings
-
add a
resolutionparameter explicitly so users would not bother passing it via kwargs
After this change,
tools.clustering.leiden(), tools.clustering.louvain(), tools.clustering.infomap() automatically get resolution`` by its caller vf.cluster_field()
tools.clustering.cluster_community() automatically gets resolution from **kwargs passed by its caller tools.clustering.leiden(), tools.clustering.louvain(), tools.clustering.infomap()
tools.clustering.cluster_community_from_graph() automatically gets resolution from **kwargs passed by its caller tools.clustering.cluster_community()
thank you so much @chansigit. feel free to provide your solution as you suggested. I can review your changes later and merge it into dynamo.
thanks. the changes look good1