OSGeo / grass-addons

GRASS GIS Addons Repository
https://grass.osgeo.org/grass-stable/manuals/addons/
GNU General Public License v2.0
103 stars 154 forks source link

[Bug] r.random.weight string.replace() #721

Closed Giordano8 closed 2 years ago

Giordano8 commented 2 years ago

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 image

Here the suspected bug in the python code (lines 87 and 108) image

A similar fixed bug here https://github.com/OSGeo/grass-addons/commit/f4294b9dcf15be44537e90f042cc1ac0a53a5e59

petrasovaa commented 2 years ago

Thanks for catching this, would you be willing to contribute a fix?

Giordano8 commented 2 years ago

I'm not a grass or python expert, but if it's just a line of code I can try...

petrasovaa commented 2 years ago

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.