[GRASS-SVN] r72739 - grass/trunk/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 25 18:22:39 PDT 2018


Author: lucadelu
Date: 2018-05-25 18:22:38 -0700 (Fri, 25 May 2018)
New Revision: 72739

Modified:
   grass/trunk/lib/python/script/array.py
Log:
array.py: added quiet option to write function, thanks to Ond?\197?\153ej Pe?\197?\161ek

Modified: grass/trunk/lib/python/script/array.py
===================================================================
--- grass/trunk/lib/python/script/array.py	2018-05-26 00:49:41 UTC (rev 72738)
+++ grass/trunk/lib/python/script/array.py	2018-05-26 01:22:38 UTC (rev 72739)
@@ -224,7 +224,7 @@
         else:
             return 0
 
-    def write(self, mapname, title=None, null=None, overwrite=None):
+    def write(self, mapname, title=None, null=None, overwrite=None, quiet=None):
         """Write array into raster map
 
         :param str mapname: name for raster map
@@ -265,6 +265,7 @@
                 bytes=size,
                 anull=null,
                 overwrite=overwrite,
+                quiet=quiet,
                 north=reg['n'],
                 south=reg['s'],
                 east=reg['e'],
@@ -373,7 +374,7 @@
         else:
             return 0
 
-    def write(self, mapname, null=None, overwrite=None):
+    def write(self, mapname, null=None, overwrite=None, quiet=None):
         """Write array into 3D raster map
 
         :param str mapname: name for 3D raster map
@@ -408,6 +409,7 @@
                 bytes=size,
                 null=null,
                 overwrite=overwrite,
+                quiet=quiet,
                 north=reg['n'],
                 south=reg['s'],
                 top=reg['t'],



More information about the grass-commit mailing list