[GRASS-SVN] r55553 - grass-addons/grass7/raster/r.agent/libagent
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 27 08:13:18 PDT 2013
Author: mic
Date: 2013-03-27 08:13:17 -0700 (Wed, 27 Mar 2013)
New Revision: 55553
Modified:
grass-addons/grass7/raster/r.agent/libagent/grassland.py
Log:
speak more python like
Modified: grass-addons/grass7/raster/r.agent/libagent/grassland.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/grassland.py 2013-03-27 15:01:48 UTC (rev 55552)
+++ grass-addons/grass7/raster/r.agent/libagent/grassland.py 2013-03-27 15:13:17 UTC (rev 55553)
@@ -84,7 +84,7 @@
@param boolean optional, whether an existing file may be overwritten
"""
vectors = []
- if grass.list_grouped('rast')[grass.gisenv()['MAPSET']].index(grassmapname) > 0:
+ if grassname in grass.list_grouped('rast')[grass.gisenv()['MAPSET']]:
layer = grass.vector_db_select(grassmapname)['values']
# TODO only points are supported, ask some expert how to test this
# TODO indexing seems to start at "1".. verify!
More information about the grass-commit
mailing list