[GRASS-SVN] r73643 - sandbox/wenzeslaus/r.mapcalculator
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 4 19:48:14 PST 2018
Author: wenzeslaus
Date: 2018-11-04 19:48:14 -0800 (Sun, 04 Nov 2018)
New Revision: 73643
Modified:
sandbox/wenzeslaus/r.mapcalculator/r.mapcalculator.html
sandbox/wenzeslaus/r.mapcalculator/r.mapcalculator.py
Log:
r.mapcalculator: no print/debug needed, verbose is enough, fix typos in doc
Modified: sandbox/wenzeslaus/r.mapcalculator/r.mapcalculator.html
===================================================================
--- sandbox/wenzeslaus/r.mapcalculator/r.mapcalculator.html 2018-11-05 03:36:19 UTC (rev 73642)
+++ sandbox/wenzeslaus/r.mapcalculator/r.mapcalculator.html 2018-11-05 03:48:14 UTC (rev 73643)
@@ -66,11 +66,11 @@
</pre></div>
<div class="code"><pre>
-r.mapcalculator expression="A + B + C" a=zeros b=ones, c=twos output=result1
+r.mapcalculator expression="A + B + C" a=zeros b=ones c=twos output=result1
</pre></div>
<div class="code"><pre>
-r.mapcalculator expression="(A * B) / 2 + 3 * C" a=zeros b=ones, c=twos output=result2
+r.mapcalculator expression="(A * B) / 2 + 3 * C" a=zeros b=ones c=twos output=result2
</pre></div>
Modified: sandbox/wenzeslaus/r.mapcalculator/r.mapcalculator.py
===================================================================
--- sandbox/wenzeslaus/r.mapcalculator/r.mapcalculator.py 2018-11-05 03:36:19 UTC (rev 73642)
+++ sandbox/wenzeslaus/r.mapcalculator/r.mapcalculator.py 2018-11-05 03:48:14 UTC (rev 73643)
@@ -129,7 +129,6 @@
# one char between the two usages of the same var (e.g. A*A)
expr = re.sub(find, replace, expr, flags=re_flags)
expr = re.sub(find, replace, expr, flags=re_flags)
- print("Expression ({find}, {replace}): {expr}".format(**locals()))
expr = '{lhs} = {rhs}'.format(lhs=output, rhs=expr)
gs.verbose(_("Expression: {}").format(expr))
More information about the grass-commit
mailing list