-
Notifications
You must be signed in to change notification settings - Fork 32
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
Remove dqflags
and related code.
#146
Remove dqflags
and related code.
#146
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #146 +/- ##
==========================================
+ Coverage 72.13% 72.32% +0.18%
==========================================
Files 28 29 +1
Lines 5470 5459 -11
==========================================
+ Hits 3946 3948 +2
+ Misses 1524 1511 -13
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Converting to a draft because spacetelescope/stdatamodels#134 needs to be merged and released before these changes will fully work. |
e8f9a03
to
32b6dbd
Compare
32b6dbd
to
0efbc77
Compare
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 more dependencies be added to tox.ini? When I run STCAL tests, I get the following errors:
FAILED tests/test_dq.py::test_deprecation[dqflags] - ImportError: dqflags has been moved to stdatamodels.dqflags, please install stdatamodels
FAILED tests/test_dq.py::test_deprecation[dynamicdq] - ImportError: dynamicdq has been moved to stdatamodels.dynamicdq, please install stdatamodels
FAILED tests/test_dq.py::test_deprecation[basic_utils] - ImportError: basic_utils has been moved to stdatamodels.basic_utils, please install stdatamodels
I don't think you have the right things installed, you need to try re-installing. |
Turns out that having too old a version of stdatamodels installed caused this. |
If stdatamodels is not installed at all, no error will be raised. |
After some further investigation, I figured it out. With an unsupported version of stdatamodels installed, tox would work, but pytest would fail with what I pasted above. Romancal installs stdatamodels via the stpipe dependency. When I installed the development version of stdatamodels, things worked fine. |
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.
With dev stdatamodels, this passes all romancal unit and regression tests.
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.
Do we need a new release of stdatamodels before a new release of stcal?
Yes |
This is being moved to stdatamodels
`dynamicdq` is being moved to stdatamodels
245fff9
to
038bd07
Compare
Is there a way to get the 3 queued CI tests to start? |
Short answer is no, the spacetelescope organization has a very limited number of macos runners, so if lots of PRs in spacetelescope are made, those can get really backed up. I'm not sure why we have so many macos jobs across all our CI. In general you only really need one to make sure we aren't making assumptions that macos cannot handle, not one on every single version of python. @zacharyburnett can provide more information. |
That's a fair point; I added macos jobs for thoroughness but you're right, we have limited resources available for free. If you guys are okay with it, I can make some PRs removing macos jobs for Python versions less than latest across the organization. |
"free" is a strong statement, I don't know exactly how STScI has structured the org, but in general an organization only gets so many minutes of action time per month before they start having to pay for it, see https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions for more details. |
Well, at this point I'm satisfied that this works OK and hence am willing to merge without waiting for those remaining CI tests to complete. @WilliamJamieson you're hereby authorized to merge. |
I would love to but I don't have the rights in @kmacdonald-stsci might be able to override the protections. |
I have the power. Merging now. |
This PR removes the code moved to
stdatamodels
in spacetelescope/stdatamodels#134. I don't think any of thedqflags
related code is actually used outside thejwst
pipeline, so this should not effect any packages.Note, I replaced the removed code with thin wrapper modules which raise a deprecation warning and then attempt to import from
stdatamodels
, raising a useful error if that import fails.Closes #145
Checklist
CHANGES.rst
(either inBug Fixes
orChanges to API
)