[GRASS-SVN] r73277 - grass-addons/grass7/imagery/i.segment.uspo
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 6 13:51:22 PDT 2018
Author: mlennert
Date: 2018-09-06 13:51:22 -0700 (Thu, 06 Sep 2018)
New Revision: 73277
Modified:
grass-addons/grass7/imagery/i.segment.uspo/i.segment.uspo.py
Log:
i.segment.uspo: get more debug info from workers
Modified: grass-addons/grass7/imagery/i.segment.uspo/i.segment.uspo.py
===================================================================
--- grass-addons/grass7/imagery/i.segment.uspo/i.segment.uspo.py 2018-09-05 16:28:01 UTC (rev 73276)
+++ grass-addons/grass7/imagery/i.segment.uspo/i.segment.uspo.py 2018-09-06 20:51:22 UTC (rev 73277)
@@ -360,9 +360,10 @@
threshold, minsize])
except:
- result_queue.put(["%s: %s_%d failed" % (current_process().name,
+ exc_info = sys.exc_info()
+ result_queue.put(["%s: %s_%d failed with message:\n\n%s" % (current_process().name,
parms['region'],
- minsize)])
+ minsize, exc_info)])
return True
@@ -392,9 +393,10 @@
result_queue.put([mapname, mean_lv, mean_autocor, threshold, minsize])
except:
- result_queue.put(["%s: %s_%f_%d failed" % (current_process().name,
+ exc_info = sys.exc_info()
+ result_queue.put(["%s: %s_%f_%d failed with message:\n\n %s" % (current_process().name,
parms ['region'],
- threshold, minsize)])
+ threshold, minsize, exc_info)])
return True
@@ -881,7 +883,6 @@
else:
gscript.message('Error in worker function: %s' % result)
-
maplist += regional_maplist
# Calculate optimization function values and get indices of best values
optlist = create_optimization_list(variancelist,
More information about the grass-commit
mailing list