Skip to content

Fix PM2.5 correction float divisions#185

Merged
MallocArray merged 1 commit into
MallocArray:mainfrom
petermnt:fix-pm25-float-divisions
May 26, 2026
Merged

Fix PM2.5 correction float divisions#185
MallocArray merged 1 commit into
MallocArray:mainfrom
petermnt:fix-pm25-float-divisions

Conversation

@petermnt
Copy link
Copy Markdown

@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
@MallocArray
Copy link
Copy Markdown
Owner

Thank you for looking into this.

@MallocArray MallocArray merged commit 7b079f9 into MallocArray:main May 26, 2026
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.

2 participants