-
Notifications
You must be signed in to change notification settings - Fork 28
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
RCAL-322: Tests for SOC-588 (Absolute photometric calibration) #479
Conversation
…into RCAL-323_SOC588Tests
…o RCAL-323_SOC588Tests
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.
How did you pick your tolerances? I'm surprised that the tolerance for the megaJy and micro Jy uncertainties are the same for an absolute tolerance.
Overall it looks like it tests what we need.
Files are in artifactory. |
I chose the tolerances relative to the values calculated from the matching photom file. I agree that ideally the tolerances for the uncertainties would be different than for the absolute values, but given that the uncertainties are 0 in the CRDS selected photom file, there wasn't a good base to set them off of - hence being the same. |
Codecov Report
@@ Coverage Diff @@
## main #479 +/- ##
=======================================
Coverage 77.69% 77.69%
=======================================
Files 39 39
Lines 1031 1031
=======================================
Hits 801 801
Misses 230 230
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Tests pass now.
setup.cfg
Outdated
@@ -30,7 +30,7 @@ install_requires = | |||
pyparsing>=2.2 | |||
requests>=2.22 | |||
roman_datamodels>=0.11.0 | |||
romanad==0.10.0 | |||
rad>=0.11.0 |
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.
Should we remove rad altogether since it comes with romand_datamodels. Is romancal using anything directly from rad or even importing it?
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.
Rad can be removed. It was there when we needed an earlier version of rad to pass the tests and is no longer needed.
GitHub issue, Closes #474
Resolves RCAL-322
Description
This PR adds SOC test for absolute photometric calibration.
Also, tweaked logging in photom step.
Updated rad version compatibility in setup.cfg.
Checklist
Tests
Documentation
Change log
Milestone
Label(s)