Jelajahi Sumber

Fix bug with quantles, clean printing

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74227 15284696-431f-4ddb-bdfa-cd5b030d7da7
Stefan Blumentrath 6 tahun lalu
induk
melakukan
81f94b6a4f
1 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 5 4
      temporal/t.rast.series/t.rast.series.py

+ 5 - 4
temporal/t.rast.series/t.rast.series.py

@@ -100,12 +100,13 @@ def main():
     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