#2269: r.univar silent instead of NaN -------------------------+-------------------------------------------------- Reporter: neteler | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: 6.4.4 Component: Raster | Version: svn-releasebranch64 Keywords: r.univar | Platform: Unspecified Cpu: Unspecified | -------------------------+--------------------------------------------------
Comment(by wenzeslaus): The same applies for `r3.univar`. It is especially bad for `-g` flag where module is used as a part of something bigger and the caller expects valid output when module ended with non-zero return code. Now it can end in the best case report and empty output when expecting something but no better error message can be provided. See also testing framework ([https://trac.osgeo.org/grass/browser/grass/trunk/lib/python/gunittest/case.py?rev=61459#L154 gunittest]) where `r.univar` and `r3.univar` are used to check map properties and thus some informative error messages needs to be provided when something is wrong. See particularly r61459. -- Ticket URL: <https://trac.osgeo.org/grass/ticket/2269#comment:3> GRASS GIS <http://grass.osgeo.org> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev