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 issue with Poisson noise in lag spectra #789

Merged
merged 3 commits into from
Jan 20, 2024
Merged

Conversation

matteobachetti
Copy link
Member

Resolve #741

We had a bug in the calculation of the Poisson noise level, which was highly overestimated. This produced some wrong results in the error calculation.

Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a4cafa4) 92.79% compared to head (90cb085) 93.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #789      +/-   ##
==========================================
+ Coverage   92.79%   93.46%   +0.66%     
==========================================
  Files          43       43              
  Lines        8762     8762              
==========================================
+ Hits         8131     8189      +58     
+ Misses        631      573      -58     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matteobachetti matteobachetti mentioned this pull request Jan 16, 2024
5 tasks
Copy link
Collaborator

@mgullik mgullik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @matteobachetti,

good catch!
I'm wondering why the tests didn't catch this?
Do you think we are doing the wrong tests?

@matteobachetti
Copy link
Member Author

I think that it just makes little difference in the high-SNR case that we test. Yes, Ideally we should have caught this before :(

@matteobachetti matteobachetti added this pull request to the merge queue Jan 20, 2024
Merged via the queue into main with commit bfa7390 Jan 20, 2024
16 checks passed
@matteobachetti matteobachetti deleted the fix_lag_error_nan branch January 29, 2024 20:18
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.

NaN errors in the lag-energy spectrum
3 participants