-
Notifications
You must be signed in to change notification settings - Fork 144
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
Bayesian Excess Variance (Bexvar) in Stingray - GSoC'22 project #664
Bayesian Excess Variance (Bexvar) in Stingray - GSoC'22 project #664
Conversation
Hello @mihirtripathi97! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2022-07-22 12:25:47 UTC |
Created a new function bexvar_from_table() to read data from astropy table and call bexvar().
Updated docstrings of functions bexvar() and bexvar_from_table (). Added some basic docstrings for other functions in code.
Added ultranest in list of optional dependancies in setup.cfg
Codecov Report
@@ Coverage Diff @@
## main #664 +/- ##
==========================================
- Coverage 97.12% 89.78% -7.35%
==========================================
Files 41 42 +1
Lines 7554 7644 +90
==========================================
- Hits 7337 6863 -474
- Misses 217 781 +564
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Also added data files for testing bexvar.py
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.
Good job! Some small requests, they should be quick to implement.
Fixed test case that checks if weight warning arises.
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.
A few additions, looking at the lines that are not covered by tests
Added a condition to check if src_counts are either zero or positive integers and raise a warning if they are not.
Added new test for lines not covered by previous tests.
Update in condition that checks if `src_counts` are zero or positive integers.
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 job @mihirtripathi97!
It's approved, but I have very minor request: please run a last check of the consistency of docstrings. I just notice that, e.g. Iterable is sometimes capitalized, sometimes not.
This is the base code for implementing Bayesian Excess Variance (bexvar) in Stingray (#582).
This project is part of Google Summer of Code 2022, a brief summary of the project can be found here.