[GRASS-git] [OSGeo/grass] 47cb04: grass.pygrass: Set r.mapcalc nprocs in ParallelMod...
Vaclav Petras
noreply at github.com
Thu Nov 6 07:14:20 PST 2025
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 47cb045a2971b3c03d6d1bd2db297f0fdc35e8ef
https://github.com/OSGeo/grass/commit/47cb045a2971b3c03d6d1bd2db297f0fdc35e8ef
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2025-11-06 (Thu, 06 Nov 2025)
Changed paths:
M python/grass/pygrass/modules/interface/module.py
Log Message:
-----------
grass.pygrass: Set r.mapcalc nprocs in ParallelModuleQueue example (#6583)
Example of ParallelModuleQueue from pygrass uses r.mapcalc. With r.mapcalc being parallel itself, we need to deal with number of processing units for the r.mapcalc tool itself, especially when the default currently is all cores. The new example presents the advanced, but realistic, scenario when we combine the two parallelizations together. Readers can always go with the hopefully obvious solution of setting nprocs=1, so having a more complete example in place seems justified as it covers the full spectrum of choices.
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list