-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add tests for theory components Bandpass and Foreground #119
Conversation
Since there is a potential conflict between this branch and the branch opened by @sgiardie to document MFLike, I suggest that we postpone adding documentation to BandPass and Foreground until MFLike is done. Things changed with this PR and addressing #115:
|
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 good, at the moment the tests for the foregrounds form some re-implementation of various functions in the Theory class here in the tests and checking they give the same answer. This checks a lot of things well, as it seems unlikely mistakes would have occured in both implementations.
It would also be nice to have some physical sanity checks along the lines of ratios of spectra > or < 1 at different frequencies (for example), just to check that the spectra being calculated have the expected physical properties.
On reflection I think my suggested test is one for fgspectra
not us here.
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.
LGTM!
* added test files for bandpass theory class * updated reqs * checked style * added tests for foreground theory component --------- Co-authored-by: Martina Gerbino <bradamante@martina.local> Co-authored-by: Ian Harrison <itrharrison@gmail.com>
No description provided.