-
Notifications
You must be signed in to change notification settings - Fork 13
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
Changes for upper and lower errors when determining fundamental parameters. #91
Conversation
…he absolute sed file
… the bootstrapped errors and not the max.Also, changing the number of samples in boostrap method to be 10^3.
Now that tests are re-running, let's put this on hold until we can more of the old tests to pass. |
It looks like the tests need to be modified as a result of these changes. |
It would be ideal to get this merged and part of the next release. |
…t is not zero regardless of giving ucertainties for xparam or yparam.
…r not. Also, got rid of a few unecessary print statements.
@kelle the tests seem to work ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Minor comments to delete some comment blocks.
Only thing it needs is a couple new tests. We can discuss at our meeting later today.
@hover2pi , this is very close to being merged. Please take a look! And let us know if you have any ideas for tests for this new functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for all the awesome improvements @SherelynA !
Co-authored-by: Kelle Cruz <[email protected]>
Co-authored-by: Kelle Cruz <[email protected]>
I had the same question! It's a cache file and doesn't need to be added to the repo. I think we should add to the gitignore. I'll open a new issue. #117 |
Pretty sure that's an index for the model atmosphere files to greatly speed up the model fitting. The code looks for it when fitting models and generates it automatically if it's absent so you could add it to the .gitignore. When a user wants to fit any model grids, they'll just have to wait ~2 minutes the first time they try but it prints a warning if I remember correctly. |
@kelle and @hover2pi right now I am writing some additional tests for different scenarios of uncertainties for the xval and yparams, and when we provide no xval or yparam uncertainty, the mass is way off that what we calculated, so like for example the other cases gives something like 0.072 Sol masses and the last scenario gives 0.020 something, so I am a bit confused on how to write a test that checks for all the values without the last one failing. I had |
|
Co-authored-by: Kelle Cruz <[email protected]>
…e the interpolated lower and upper errors
…ectly use the interpolated lower and upper errors" This reverts commit 037a91d.
@hover2pi I see in an old test you wrote, in test_isochrone.py, you tested a scenario where the lbol and age don't have uncertainties, but I guess I wanted to know in what scenario you think we could get something like this? |
@SherelynA I suspect that test was just to check the no-uncertainty handling for arbitrary variables, not a specific use case. Feel free to change it to something more probative! |
I also remember trying to use |
@hover2pi Yeah, I agree that I don't think we gain much by trying to add it. The only reason I asked was because during checking tests I realized that all the results had units except logg so I had to change accordingly. However, since you mentioned it being problematic I think it is best to just have the the condition in the tests and not try to add units. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic. Thanks @SherelynA !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!!
Addresses issue #88 by calculating upper and lower error for evolutionary model derived parameters using the already integrated Monte-Carlo approach along with using a 68% central confidence interval. The method used is described in Suárez & Metchev (2022).
I was unable to run tests for the changes nonetheless, in the future tests should be written for these additions.