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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 27 21:35:08 PST 2017


Author: spawley
Date: 2017-12-27 21:35:08 -0800 (Wed, 27 Dec 2017)
New Revision: 71983

Modified:
   grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py
Log:
Switch set_path from depreciated to grass.script.utils

Modified: grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py
===================================================================
--- grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py	2017-12-27 14:42:05 UTC (rev 71982)
+++ grass-addons/grass7/raster/r.learn.ml/r.learn.ml.py	2017-12-28 05:35:08 UTC (rev 71983)
@@ -413,11 +413,10 @@
 import os
 from copy import deepcopy
 import numpy as np
-from grass.pygrass.utils import set_path
 import grass.script as gs
 from grass.pygrass.modules.shortcuts import raster as r
 
-set_path('r.learn.ml')
+gs.utils.set_path(modulename='r.learn.ml')
 from rlearn_crossval import cross_val_scores
 from rlearn_sampling import extract_pixels, extract_points
 from rlearn_prediction import predict



More information about the grass-commit mailing list