[GRASS-SVN] r67983 - grass-addons/grass7/imagery/i.segment.uspo

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 1 00:54:52 PST 2016


Author: mlennert
Date: 2016-03-01 00:54:52 -0800 (Tue, 01 Mar 2016)
New Revision: 67983

Modified:
   grass-addons/grass7/imagery/i.segment.uspo/i.segment.uspo.py
Log:
i.segment.uspo: stripping @mapset too early from region name prevents use of regions defined in other mapsets


Modified: grass-addons/grass7/imagery/i.segment.uspo/i.segment.uspo.py
===================================================================
--- grass-addons/grass7/imagery/i.segment.uspo/i.segment.uspo.py	2016-03-01 04:19:54 UTC (rev 67982)
+++ grass-addons/grass7/imagery/i.segment.uspo/i.segment.uspo.py	2016-03-01 08:54:52 UTC (rev 67983)
@@ -531,7 +531,7 @@
         minsizes = range(start,stop,step)
 
     if options['regions']:
-	regions = [r.split('@')[0] for r in options['regions'].split(',')]
+	regions = options['regions'].split(',')
     else:
 	regions = False
 
@@ -552,7 +552,7 @@
     for region in regions:
 
         gscript.message("Working on region %s\n" % region)
-        parms['region'] = region
+        parms['region'] = region.split('@')[0]
 
         gscript.run_command('g.region', 
                             region=region,



More information about the grass-commit mailing list