[GRASS-git] [OSGeo/grass-addons] 0a20df: r.maxent - restore region after change (#1825)
Paulo van Breugel
noreply at github.com
Thu Aug 6 00:46:46 PDT 2026
Branch: refs/heads/grass8
Home: https://github.com/OSGeo/grass-addons
Commit: 0a20df5843f6efaed97780d24fcf70a69157cde6
https://github.com/OSGeo/grass-addons/commit/0a20df5843f6efaed97780d24fcf70a69157cde6
Author: Paulo van Breugel <paulo at ecodiv.earth>
Date: 2026-08-06 (Thu, 06 Aug 2026)
Changed paths:
M src/raster/r.maxent.predict/r.maxent.predict.py
M src/vector/v.maxent.swd/v.maxent.swd.py
Log Message:
-----------
r.maxent - restore region after change (#1825)
r.maxent.predict and r.maxent.swd change the region (resolution) when the -e flag is set, but did not restore it after the module finished. This fix uses `gs.use_temp_region` to ensure the region is restored, following the suggestion #1741.
I did not use del_temp_region() as gs.use_temp_region already ensure the tempoary region is removed even if the module fails.
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass-addons/settings/notifications
More information about the grass-commit
mailing list