Skip to content

Fix PM2.5 correction float divisions#185

Open
petermnt wants to merge 1 commit intoMallocArray:mainfrom
petermnt:fix-pm25-float-divisions
Open

Fix PM2.5 correction float divisions#185
petermnt wants to merge 1 commit intoMallocArray:mainfrom
petermnt:fix-pm25-float-divisions

Conversation

@petermnt
Copy link

@petermnt petermnt commented Jan 29, 2026

The PM2.5 correction lambda was doing integer division in a couple of places (e.g., 3/2 and 21/5), which silently truncates and slightly skews the correction math. I changed those divisions to explicit floats (3.0/2.0, 21.0/5.0) so the calculations use proper fractional values. This fixes the correction curve without changing any other behavior.

@petermnt petermnt force-pushed the fix-pm25-float-divisions branch from 69aa9c8 to 03e313e Compare January 29, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant