Explorar o código

t.rast.extract: fix bug when running parallel processes

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60632 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová %!s(int64=11) %!d(string=hai) anos
pai
achega
a28536b43a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/python/temporal/extract.py

+ 1 - 1
lib/python/temporal/extract.py

@@ -146,7 +146,7 @@ def extract_dataset(input, output, type, where, expression, base, nprocs=1,
 
                 # Join processes if the maximum number of processes are
                 # reached or the end of the loop is reached
-                if proc_count == nprocs or proc_count == num_rows:
+                if proc_count == nprocs or count == num_rows:
                     proc_count = 0
                     exitcodes = 0
                     for proc in proc_list: