[GRASS-SVN] r74227 - grass/trunk/temporal/t.rast.series

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 12 17:26:34 PDT 2019


Author: sbl
Date: 2019-03-12 17:26:34 -0700 (Tue, 12 Mar 2019)
New Revision: 74227

Modified:
   grass/trunk/temporal/t.rast.series/t.rast.series.py
Log:
Fix bug with quantles, clean printing

Modified: grass/trunk/temporal/t.rast.series/t.rast.series.py
===================================================================
--- grass/trunk/temporal/t.rast.series/t.rast.series.py	2019-03-12 22:22:35 UTC (rev 74226)
+++ grass/trunk/temporal/t.rast.series/t.rast.series.py	2019-03-13 00:26:34 UTC (rev 74227)
@@ -100,12 +100,13 @@
     nulls = flags["n"]
 
     # Check if number of methods and output maps matches
-    print((method.split(',')))
-    print(len(list(filter(None, quantile.split(',')))))
-    print((output.split(',')))
+    if 'quantile' in method:
+        len_method = len(method.split(',')) - 1
+    else:
+        len_method = len(method.split(','))
     
     if (len(list(filter(None, quantile.split(',')))) + 
-        len(method.split(','))) != len(output.split(',')):
+        len_method) != len(output.split(',')):
         grass.fatal(_('Number requested methods and output maps do not match.'))
 
     # Make sure the temporal database exists



More information about the grass-commit mailing list