Change to EnsureChannelFirst to include behaviour from deprecated transforms#4842
Merged
wyli merged 4 commits intoProject-MONAI:devfrom Aug 5, 2022
Merged
Conversation
…nsforms Signed-off-by: Eric Kerfoot <[email protected]>
Signed-off-by: Eric Kerfoot <[email protected]>
Signed-off-by: Eric Kerfoot <[email protected]>
rijobro
approved these changes
Aug 5, 2022
KumoLiu
reviewed
Aug 5, 2022
Contributor
|
/build |
Contributor
|
/build |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Signed-off-by: Eric Kerfoot [email protected]
Description
EnsureChannelFirstshould be used in place ofAddChannel, however it requires that metadata be provided as MetaTensor inputs or separate dictionaries. This doesn't substitute forAddChannelwhich required neither of these things and so can't be used in the situation where one has data known to have no channel dimension nor metadata and we just want to hard-code adding a 1-sized channel dimension. This is useful in a lot of examples that use generated data and not loaded files that come with metadata, and avoids forcing the user to use MetaTensor.Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.