-
Notifications
You must be signed in to change notification settings - Fork 179
Fix associations ListCategory enum bug #7370
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
Fix associations ListCategory enum bug #7370
Conversation
Codecov ReportBase: 80.02% // Head: 76.98% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #7370 +/- ##
==========================================
- Coverage 80.02% 76.98% -3.04%
==========================================
Files 413 413
Lines 37911 39433 +1522
==========================================
+ Hits 30339 30359 +20
- Misses 7572 9074 +1502
*This pull request uses carry forward flags. 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 at Codecov. |
stscieisenhamer
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.
In response to your concerns in the description of the PR: The code, as provided, is OK, in as much what is being seen is OK.
However, hoping your generosity of providing support continues, I have suggested a refactor in the in-line comments.
b72dfec to
c58ddff
Compare
|
Started a regtest run against this PR branch at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/484/ |
|
Regtest run is "clean" in the sense that the only failures are unrelated and are waiting on another open PR to get fixed. |
|
Regtests and CI tests are all "clean". @stscieisenhamer are you in approval of this? |
stscieisenhamer
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. Thanks James!
This PR addresses a bug in
associations/registry.pyseen in python 3.11 testing and discussed here#7333 (comment)
The failure was in unit test
jwst/associations/tests/test_asn_from_list.py::test_level2_from_cmdline.It's not clear to me this is the desired fix. It does fix it, but given that the generated rules produced in the test produce the following rules (produced by adding
print(rule_name, obj)at line 322 in registry.py):It might be picking up "rules" that are not actually rules? Are
UtilityandListCategoryactually rules? I don't follow the way rules are picked up, as I can't follow theimportlibusage in these modules.This PR also fixes a test that litters the repo with
jw01439-o002_wfs-image2_*_asn.jsonassociation files by using atmp_pathfixture.Checklist for maintainers
CHANGES.rstwithin the relevant release sectionHow to run regression tests on a PR