Closed Giordano8 closed 2 years ago
Thanks for catching this, would you be willing to contribute a fix?
I'm not a grass or python expert, but if it's just a line of code I can try...
No need to be expert for this, but let me suggest following https://github.com/OSGeo/grass-addons/blob/grass8/CONTRIBUTING.md, that will help you, especially if you are not super familiar with git/github.
r.random.weight in GRASS GIS.
In python code there should be a bug related to string.replace in line 108
Screenshots Here the bug in GRASS
Here the suspected bug in the python code (lines 87 and 108)
A similar fixed bug here https://github.com/OSGeo/grass-addons/commit/f4294b9dcf15be44537e90f042cc1ac0a53a5e59