[GRASS-git] [OSGeo/grass] 76d7a7: grass.pygrass: Set r.mapcalc threads in GridModule...

Vaclav Petras noreply at github.com
Thu Nov 6 06:46:05 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 76d7a7d98d026c6bea2fa0aaeb68aa551a55408b
      https://github.com/OSGeo/grass/commit/76d7a7d98d026c6bea2fa0aaeb68aa551a55408b
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2025-11-06 (Thu, 06 Nov 2025)

  Changed paths:
    M python/grass/pygrass/modules/grid/grid.py

  Log Message:
  -----------
  grass.pygrass: Set r.mapcalc threads in GridModule (#6581)

In the serial portions of the pygrass GridModule processing, use the number of processing elements passed to GridModule as the nprocs parameter of r.mapcalc. This is used when rasters are copied over and r.mapcalc is used to create a more suitable version of the raster. (There might be a better way of implementing that step, but with the current code, using the right number of cores/threads is the obvious improvement and fix.)

When the code already runs in parallel, set number of processing elements to 1 so that we avoid oversubscription within the process itself.



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