-
Notifications
You must be signed in to change notification settings - Fork 0
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
155 mc phase fit #156
base: main
Are you sure you want to change the base?
155 mc phase fit #156
Conversation
I have merged all recent updates into this old PR. The PhaseCurve FitModel function now has a resample argument, when passed it will resample observations within their (assumed gaussian) uncertainties. Currently there is a basic demo at I also took the opportunity to add more PhaseCurve unit tests |
I have improved the resample unit tests as requested by @astronomerritt . The tests now also compares the values to some pre-recorded ones. |
Fixes #155.
Added a resample flag to
PhaseCurve.FitModel
. This flag triggers a montecarlo resampling of the observations, using a gaussian distribution centred on the magnitude value and with std equal to the photometric uncertainty. This then returns phase curve parameters with value equal to the mean of the MC distribution, and uncertainties equal to one std of the distribution.Also includes some small tweaks to ensure
PhaseCurve handles
units better when they are passed.Review Checklist for Source Code Changes