Open MattArran opened 1 year ago
Hi @MattArran and thank you very much for your PR! Unfortunately, I'm not really familiar with the code behind to_spatial_contracted
since it was written by Luuk or Lorena, so I think you have to wait for their review. Thanks again!
Hi Andrea! No problem; it's a small fix and, as #243 mentions, the problem can be avoided in the interrim by sorting the tibble of nodes by the clustering variable before applying to_spatial_contract
. Glad to make even a tiny contribution to such a useful package!
test_morphers.m
, specifying clusters forto_spatial_contracted()
so as to catch the issue with mismatching node geometry (Ref. #243)to_spatial_contracted()
inmorphers.m
to ensure that the order of the updated node geometries matches the order of the updated nodes, even if there are non-duplicated, non-sorted clustering values.Pull request to
main
branch becausedevelop
branch missing.