[GRASS-SVN] r68118 - grass-addons/grass7/raster/r.random.weight
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 23 02:09:27 PDT 2016
Author: pvanbosgeo
Date: 2016-03-23 02:09:27 -0700 (Wed, 23 Mar 2016)
New Revision: 68118
Modified:
grass-addons/grass7/raster/r.random.weight/r.random.weight.py
Log:
r.random.weight addon: bugfix how temp layers are removed
Modified: grass-addons/grass7/raster/r.random.weight/r.random.weight.py
===================================================================
--- grass-addons/grass7/raster/r.random.weight/r.random.weight.py 2016-03-23 09:09:22 UTC (rev 68117)
+++ grass-addons/grass7/raster/r.random.weight/r.random.weight.py 2016-03-23 09:09:27 UTC (rev 68118)
@@ -90,7 +90,7 @@
clean_rast = set()
def cleanup():
for rast in clean_rast:
- grass.run_command("g.remove",
+ grass.run_command("g.remove", flags="f",
type="rast", name = rast, quiet = True)
# Create temporary name
@@ -155,7 +155,6 @@
outmap = outmap,
tmp_map = tmp_map, quiet=True)
- grass.run_command("g.remove", quiet=True, flags="f", type="raster", name=tmp_map)
if not subsample == '':
grass.run_command('r.null',
map = outmap,
More information about the grass-commit
mailing list