-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Implement FlattenSubKeysd
#5554
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
Conversation
|
A use case can be found here for Project-MONAI/tutorials#1055 |
myron
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.
Hi @drbeh , it seems good to me, but the name PromoteChildItemsd() is not very intuitive. You can consider calling it
MergeSubKeys(sub_keys=...) or FlattenSubKeys(sub_keys=..). And if sub_keys is not provided, merge all of them.
but this is minor, should not a be stopper for this issue..
|
agree with @myron, I think |
wyli
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.
looks good to me, please fix the typos I'll merge this
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
674f15d to
3abcb11
Compare
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
|
/build |
Fixes Project-MONAI#5553 ### Description Promote specified children of specified items to the level of item. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [x] New tests added to cover the changes. - [x] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [x] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [x] In-line docstrings updated. - [x] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Fixes #5553
Description
Promote specified children of specified items to the level of item.
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.