[GRASS-git] [OSGeo/grass-addons] 740df1: v.median: Fix stdout output and add pytest suite (...
Christian Braun
noreply at github.com
Fri Jul 17 06:15:10 PDT 2026
Branch: refs/heads/grass8
Home: https://github.com/OSGeo/grass-addons
Commit: 740df11c60f2f007d14557cf9456bc57c24389ff
https://github.com/OSGeo/grass-addons/commit/740df11c60f2f007d14557cf9456bc57c24389ff
Author: Christian Braun <christian.braun1980 at gmail.com>
Date: 2026-07-17 (Fri, 17 Jul 2026)
Changed paths:
A src/vector/v.median/tests/conftest.py
A src/vector/v.median/tests/test_v_median.py
M src/vector/v.median/v.median.py
Log Message:
-----------
v.median: Fix stdout output and add pytest suite (#1787)
Fixes a bug in v.median's stdout output and adds a pytest suite.
Fix: The - (dash) output mode wrote the result via grass.message(), which routes to stderr, not stdout. Switched to print() so the module's data output actually reaches stdout. v.median out=- previously produced no stdout at all.
Tests: Cover the median written to a vector map, the median printed to stdout, that stdout mode creates no map, overwrite protection, and the even-count averaging case. Notes that we are using NumPy median which is average of two middle values for even set.
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