[GRASS-SVN] r72660 - grass-addons/grass7/raster/r.valley.bottom
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 1 21:24:16 PDT 2018
Author: spawley
Date: 2018-05-01 21:24:16 -0700 (Tue, 01 May 2018)
New Revision: 72660
Modified:
grass-addons/grass7/raster/r.valley.bottom/r.valley.bottom.py
Log:
r.valley.bottom fix issue associated with pygrass shortcut to r.mapcalc which fails to execute the expression on windows, but it works on linux and os x. Changed to using r.mapcalc through the grass script module.
Modified: grass-addons/grass7/raster/r.valley.bottom/r.valley.bottom.py
===================================================================
--- grass-addons/grass7/raster/r.valley.bottom/r.valley.bottom.py 2018-05-02 01:27:29 UTC (rev 72659)
+++ grass-addons/grass7/raster/r.valley.bottom/r.valley.bottom.py 2018-05-02 04:24:16 UTC (rev 72660)
@@ -251,7 +251,7 @@
input=input_grown, d=valid, e=invalid))
expr = "{x} = ({s}) / {n}".format(x=PCTL, s=" + ".join(terms), n=n_pixels)
- r.mapcalc(expr)
+ grass.mapcalc(expr)
return(PCTL)
More information about the grass-commit
mailing list