[GRASS-git] [OSGeo/grass] 6106e1: grass.script: Add available_cpus and resolve_nproc...

Anna Petrasova noreply at github.com
Sat Jun 13 08:51:16 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 6106e164c6e8d307c058741aa8cd97b5935e07e9
      https://github.com/OSGeo/grass/commit/6106e164c6e8d307c058741aa8cd97b5935e07e9
  Author: Anna Petrasova <kratochanna at gmail.com>
  Date:   2026-06-13 (Sat, 13 Jun 2026)

  Changed paths:
    M gui/wxpython/animation/utils.py
    M gui/wxpython/datacatalog/tree.py
    M python/grass/jupyter/utils.py
    M python/grass/pygrass/modules/grid/grid.py
    M python/grass/pygrass/modules/interface/module.py
    M python/grass/script/__init__.py
    M python/grass/script/tests/utils_test.py
    M python/grass/script/utils.py
    M temporal/t.rast.univar/t.rast.univar.py
    M temporal/t.rast3d.univar/t.rast3d.univar.py

  Log Message:
  -----------
  grass.script: Add available_cpus and resolve_nprocs helpers (#7414)

Affinity-aware CPU count and G_OPT_M_NPROCS resolution (positive
  as-is, 0 = all cores, negative reserves cores). Migrate ad-hoc
  cpu_count() sites in pygrass, jupyter, animation, and datacatalog
  GUI to the new helpers; all become container/cgroup aware.

  Fix t.rast.univar and t.rast3d.univar: nprocs=0 was silently
  clamped to 1 instead of using all available cores.

  New in grass.script public API in GRASS 8.6.



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