[GRASS-git] [OSGeo/grass] 2162f8: grass.script: Fix sign and hemisphere handling in ...

Bhuvan Somisetty noreply at github.com
Mon Sep 28 19:48:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 2162f862a6405a22fa74a6061987f3e6501ed0f0
      https://github.com/OSGeo/grass/commit/2162f862a6405a22fa74a6061987f3e6501ed0f0
  Author: Bhuvan Somisetty <somisettybhuvan5 at gmail.com>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    M python/grass/script/tests/utils_test.py
    M python/grass/script/utils.py
    M scripts/r.import/r.import.py

  Log Message:
  -----------
  grass.script: Fix sign and hemisphere handling in float_or_dms (#7932)

A leading minus sign was applied only to the degrees term, so
"-26:45:30" evaluated to -25.24 instead of -26.76. A trailing S or W
letter was dropped without negating the value. Apply the sign and
hemisphere to the whole value. An empty string now raises ValueError
instead of IndexError.



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