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 lnlike #112

Merged
merged 7 commits into from
Nov 15, 2023
Merged

fix lnlike #112

merged 7 commits into from
Nov 15, 2023

Conversation

karllark
Copy link
Owner

In the lnlike function, the observed data were scaled to an average of 1, but the uncertainties were not. This caused very large chisqr values leading to the priors not being used. This has been fixed by scaling the model to the observed data. Works much better as one would expect!

@karllark karllark added the bug Something isn't working label Nov 15, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 15, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (464fc09) 47.46% compared to head (e7b428a) 42.95%.

Files Patch % Lines
measure_extinction/utils/fit_model.py 0.00% 3 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #112      +/-   ##
==========================================
- Coverage   47.46%   42.95%   -4.52%     
==========================================
  Files          20       20              
  Lines        2703     2703              
==========================================
- Hits         1283     1161     -122     
- Misses       1420     1542     +122     

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

@karllark karllark merged commit de24fb2 into master Nov 15, 2023
29 of 35 checks passed
@karllark karllark deleted the fix_lnlike branch November 17, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants