Skip to content
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

Fix noise image statistics #755

Merged
merged 7 commits into from
Oct 1, 2024
Merged

Fix noise image statistics #755

merged 7 commits into from
Oct 1, 2024

Conversation

mauch
Copy link
Contributor

@mauch mauch commented Sep 25, 2024

Check for negative pixes as well as 0 or NaN ones in the noise images when calculating statistics.

This fixes #753

NOTE: I'm not using f-strings for log messages because this is considered bad
practice in logging. f-strings are greedy and will be computed even if the log
isn't printed to the screen. While this isn't an issue here since the log
message is quick to render, it's good practice to always print log messages
in this way in case the message requires an expensive calculation.
See: https://bugs.python.org/issue46200 for some discussion of this.
@mauch mauch requested a review from ddobie September 25, 2024 00:26
mauch and others added 2 commits September 30, 2024 09:52
Co-authored-by: Dougal Dobie <[email protected]>
Co-authored-by: Dougal Dobie <[email protected]>
@mauch mauch merged commit 01bbc3e into dev Oct 1, 2024
5 checks passed
@mauch mauch deleted the fix_753_rms_calc branch October 1, 2024 02:48
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.

Fix minimum RMS calculation from noise images.
2 participants