-
Notifications
You must be signed in to change notification settings - Fork 25
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
JP-3721: Simplify ModelContainer #330
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #330 +/- ##
=======================================
Coverage 66.55% 66.55%
=======================================
Files 102 102
Lines 5456 5457 +1
=======================================
+ Hits 3631 3632 +1
Misses 1825 1825 ☔ View full report in Codecov by Sentry. |
I follow the changes motivated by the inheritance change. Since stdatamodels/src/stdatamodels/jwst/datamodels/util.py Lines 103 to 105 in 852c8d7
by switching list to Sequence here:stdatamodels/src/stdatamodels/jwst/datamodels/util.py Lines 156 to 162 in 852c8d7
dm.open(container) will do the same thing as before (call ModelContainer(container) ).
I don't following the |
Yes, and it hasn't got anything to do with stdatamodels specifically, as you correctly point out. I will remove it from the summary |
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.
regression tests passed. @braingram I don't have permissions to request additional reviewers nor merge in this repository, feel free to do either at your convenience |
Helps to resolve JP-3721
Helps to close spacetelescope/jwst:8738
This PR enables the JWST ModelContainer to no longer inherit from DataModel as part of an effort to make ModelContainer's usage narrower and easier to understand.
Tasks
docs/
pageno-changelog-entry-needed
)changes/
:echo "changed something" > changes/<PR#>.<changetype>.rst
(see below for change types)jwst
regression tests with this branch installed ("git+https://github.com/<fork>/stdatamodels@<branch>"
)news fragment change types...
changes/<PR#>.feature.rst
: new featurechanges/<PR#>.bugfix.rst
: fixes an issuechanges/<PR#>.doc.rst
: documentation changechanges/<PR#>.removal.rst
: deprecation or removal of public APIchanges/<PR#>.misc.rst
: infrastructure or miscellaneous change