[GRASS-dev] pyGRASS: ParallelModuleQueue

Martin Landa landa.martin at gmail.com
Wed Nov 30 03:25:56 PST 2016


Hi,

is it possible to use progress info when using ParallelModuleQueue?
Something similar to grass.percent(). Eg.

"""
grass.message("Clipping...")
                                              for name in maps:

                                  new_mapcalc =
copy.deepcopy(mapcalc_module)
             queue.put(new_mapcalc(expression='{name}={name}'.format(name=name)))

             queue.wait()
"""

->

Clipping....
5%                          <- 5% of jobs done
10%
...

Thanks, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the grass-dev mailing list