-
Notifications
You must be signed in to change notification settings - Fork 181
Fix inheritance of data models #7571
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
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #7571 +/- ##
==========================================
- Coverage 77.57% 77.56% -0.01%
==========================================
Files 455 455
Lines 36340 36340
==========================================
- Hits 28189 28188 -1
- Misses 8151 8152 +1
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
hbushouse
left a comment
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.
Just caught one minor typo.
|
When you do a regtest run, be sure to specify "stdatamodels==1.4.0" in the OVERRIDE_REQUIREMENTS field, so that you don't get spurious errors/differences due to the new NIRCam grism transforms. |
hbushouse
left a comment
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
|
Is there a github issue or JP ticket tracking this problem? |
|
No, there isn't a ticket. Should I write a Github or JP ticket? |
|
I think there are many more occurrences of |
I think a github issue would be good and sufficient. No need to bother folks who monitor the JP project. |
Are there? In code or docstrings? I guess I missed them. I'd like to fix all of them. |
Resolves JP-nnnn
Closes #
This PR addresses an issue with data model inheritance. Models inheriting from
stdatamodels.jwst.DataModeldo not register as instances ofDataModel. For exampleisinstance(SlitModel(), stdatamodels.jwst.datamodels.DataModelreturnsFalse. Sincestdatamodels.jwst.datamodels.DataModelis deprecated n favor ofstdatamodels.jwst.datamodels.JwstDataModelI've replaced any occurrence ofDatModelwithJwstDataModel.Checklist for maintainers
CHANGES.rstwithin the relevant release sectionHow to run regression tests on a PR
regression tests: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/695/