-
Notifications
You must be signed in to change notification settings - Fork 171
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 a bug in how a image group name is determined #8426
Fix a bug in how a image group name is determined #8426
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8426 +/- ##
===========================================
- Coverage 75.31% 56.30% -19.02%
===========================================
Files 474 390 -84
Lines 38965 38886 -79
===========================================
- Hits 29345 21893 -7452
- Misses 9620 16993 +7373
☔ View full report in Codecov by Sentry. |
Is there an advantage to using a name different from the |
I don't know for sure. One consideration was to have a relatively short name so that it is easily readable in the log file (a bad alternative would be to concatenate all file names of models in a group.) The main issue is that Ideally, I think |
Thanks! jwst/jwst/datamodels/container.py Lines 461 to 480 in 9429dc6
|
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.
Looks good to me. Thanks, @mcara!
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! Have regtests been run with these changes?
running now |
Thanks @braingram & @mairanteodoro |
Happy to help! |
It has been reported when an user used custom file names with the same common file name in several groups of images (i.e., with different
group_id
in the asn files). The algorithm for computing group names (_common_name()
) may fail to produce a unique name for some groups resulting in these groups not being aligned.This is not an issue for pipeline runs on original JWST file names but may affect grouping when user renames input models.
This PR is a further improvement on #8012
Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR