Skip to content

r3.univar: Bring r3.univar implementation closer to r.univar #5939

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

echoix
Copy link
Member

@echoix echoix commented Jun 22, 2025

This isn't much, but I happened to see when looking why there were some differences in the strings used between r and r3 versions of some code, that the implementations were more diverging than only what is needed for handling the third dimension.

I had the two files compared, side by side, and with moved blocks detection enabled to see.
Some parts of r3 had more understandable variable names, whilst the r version had gui section tags that I copied over to the r3 version.

There was a static function "univar_stat_with_percentiles" in r.univar that I would've like to use as is in the r3 version, but since it is "static", it doesn't work to define it in another file. Is duplicating that function the correct approach?

I've read about the sizeof(type) vs sizeof expression, and kinda concluded that it doesn't really matter to parenthesize an expression. I verified a sample little program on Godbolt: https://godbolt.org/z/Wc31Pboqx

@github-actions github-actions bot added raster Related to raster data processing C Related code is in C libraries module labels Jun 22, 2025
echoix and others added 3 commits June 22, 2025 00:37
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C libraries module raster Related to raster data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant