[GRASS-SVN] r42373 - grass/branches/develbranch_6/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 29 07:25:01 EDT 2010
Author: martinl
Date: 2010-05-29 07:25:00 -0400 (Sat, 29 May 2010)
New Revision: 42373
Modified:
grass/branches/develbranch_6/lib/python/raster.py
Log:
pythonlib: don't ignore verbose/quiet/overwrite in mapcalc()
Modified: grass/branches/develbranch_6/lib/python/raster.py
===================================================================
--- grass/branches/develbranch_6/lib/python/raster.py 2010-05-29 11:19:12 UTC (rev 42372)
+++ grass/branches/develbranch_6/lib/python/raster.py 2010-05-29 11:25:00 UTC (rev 42373)
@@ -83,5 +83,10 @@
"""
t = string.Template(exp)
e = t.substitute(**kwargs)
+ for key in kwargs.keys():
+ if key in ['overwrite', 'quiet', 'verbose']:
+ continue
+ del kwargs[key]
+
if write_command('r.mapcalc', stdin = e) != 0:
fatal("An error occurred while running r.mapcalc")
More information about the grass-commit
mailing list