[GRASS-SVN] r71406 - grass-addons/grass7/raster/r.terrain.texture

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 15 15:00:08 PDT 2017


Author: spawley
Date: 2017-08-15 15:00:08 -0700 (Tue, 15 Aug 2017)
New Revision: 71406

Modified:
   grass-addons/grass7/raster/r.terrain.texture/r.terrain.texture.py
Log:
r.terrain.texture fixed conversion of numpy matrix to string

Modified: grass-addons/grass7/raster/r.terrain.texture/r.terrain.texture.py
===================================================================
--- grass-addons/grass7/raster/r.terrain.texture/r.terrain.texture.py	2017-08-14 21:30:40 UTC (rev 71405)
+++ grass-addons/grass7/raster/r.terrain.texture/r.terrain.texture.py	2017-08-15 22:00:08 UTC (rev 71406)
@@ -151,7 +151,7 @@
     x = np.zeros((w,w))
     x[:] = -1
     x[w/2, w/2] = (np.square(w))-1
-    x_str=np.array2string(a=x)    
+    x_str=str(x)    
     x_str = x_str.replace(' [', '')
     x_str = x_str.replace('[', '')
     x_str = x_str.replace(']', '')



More information about the grass-commit mailing list