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

Fluxcalib variance fix #2422

Merged
merged 7 commits into from
Dec 3, 2024
Merged

Fluxcalib variance fix #2422

merged 7 commits into from
Dec 3, 2024

Conversation

segasai
Copy link
Contributor

@segasai segasai commented Dec 2, 2024

Proposed fix to #2420
I've added an extra test is for test_fluxcalibration which tests a case of infinite S/N spectra, but finite S/N for calibration vector. In that case the correct S/N of the flux-calibrated spectrum should be the same as of the calibration vector
Previously the tests only considered the case of infinite S/N fluxcalib vector.

@coveralls
Copy link

coveralls commented Dec 2, 2024

Coverage Status

coverage: 30.146% (+0.001%) from 30.145%
when pulling fba5fa8 on fluxcalib_var_fix
into 255647f on main.

Copy link
Contributor

@julienguy julienguy left a comment

Choose a reason for hiding this comment

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

I approve the changes.

@julienguy
Copy link
Contributor

I checked the code is running and results is smaller inverse variance for bright objects.

@julienguy julienguy merged commit b30c16c into main Dec 3, 2024
26 checks passed
@segasai
Copy link
Contributor Author

segasai commented Dec 3, 2024

thank you for merging quickly!

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.

3 participants