[GRASS-SVN] r73074 - grass-addons/grass7/raster/r.learn.ml

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 11 06:10:34 PDT 2018


Author: neteler
Date: 2018-08-11 06:10:34 -0700 (Sat, 11 Aug 2018)
New Revision: 73074

Modified:
   grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py
Log:
r.learn.ml addon: improve error msg

Modified: grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py
===================================================================
--- grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py	2018-08-09 13:39:09 UTC (rev 73073)
+++ grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py	2018-08-11 13:10:34 UTC (rev 73074)
@@ -706,7 +706,7 @@
                 shape=(current.rows, current.cols))
             response_np[:] = np.array(roi_gr)[:]
     else:
-        gs.fatal("GRASS response raster does not exist.... exiting")
+        gs.fatal("GRASS GIS response raster map <%s> does not exist" % response)
 
     # determine number of predictor rasters
     n_features = len(predictors)



More information about the grass-commit mailing list