-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix #8442: pass meta_data to EnsureChannelFirst when track_meta is False #8835
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
Open
williams145
wants to merge
1
commit into
Project-MONAI:dev
Choose a base branch
from
williams145:fix/issue-8442-loadimage-track-meta-ensure-channel-first
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4
−1
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 18238
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 135
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 166
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 783
🏁 Script executed:
# Read test_load_image.py to check for set_track_meta usage wc -l tests/transforms/test_load_image.pyRepository: Project-MONAI/MONAI
Length of output: 102
🏁 Script executed:
# Read test_load_imaged.py to check for set_track_meta usage wc -l tests/transforms/test_load_imaged.pyRepository: Project-MONAI/MONAI
Length of output: 103
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 386
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 45
🏁 Script executed:
rg -B10 -A10 "ensure_channel_meta_first\s*=\s*True" tests/transforms/test_load_imaged.pyRepository: Project-MONAI/MONAI
Length of output: 45
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 734
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 696
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 831
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 347
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 444
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 825
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 45
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 45
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 1457
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 45
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 337
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 1501
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 1281
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 931
Add regression test for
set_track_meta(False)+ensure_channel_first=True.The fix is correct, but there is no test coverage for
set_track_meta(False)combined withLoadImage(..., ensure_channel_first=True)orLoadImaged(..., ensure_channel_first=True). Existing tests cover meta tracking separately from channel-first ordering, but not together. Add a test case to prevent regression of this specific scenario.🤖 Prompt for AI Agents