lsm.setPatchPositions(method='wmean') # calculate patch weighted centre for tassellation
patches = lsm.getPatchNames()
lsm.group('facet', facet=mask, root='Dir')
lsm.setPatchPositions(method='mid') # recalculate the patch centre as mid point for imaging
directions = lsm.getPatchPositions()
in these two cases the names in the "patches" variable and the keys in "directions" have different names when more than 10 patches are created. The first has e.g. Dir_1 and the second Dir_01. The best would be to have consistency with naming patches across the code (maybe always without leading 0s).
in these two cases the names in the "patches" variable and the keys in "directions" have different names when more than 10 patches are created. The first has e.g. Dir_1 and the second Dir_01. The best would be to have consistency with naming patches across the code (maybe always without leading 0s).