-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
5821 Enhance bundle CLI entry for different bundle workflows #6181
Conversation
merge master
merge master
merge master
merge master
merge master
merge master
merge master
Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
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.
I have a few concerns with backwards compatibility with this change. I see what your intent is and that it does work correctly, but if someone has a command line python -m monai.bundle run some_expr
they would need to have python -m monai.bundle run --run_id some_expr
? Even besides that, because the arguments are being removed from the signature of the function the help output from Fire gives less information about what the arguments are, and what they are for, since all the important values get put into **kwargs
.
Also it looks like the premerge tests are failing for related reasons, that is the command line has changed. |
Signed-off-by: Nic Ma <nma@nvidia.com>
6a33669
to
0a2eed8
Compare
Hi @ericspod , Thanks for your review and suggestions. Thanks in advance. |
Signed-off-by: Nic Ma <nma@nvidia.com>
0a2eed8
to
810b1f8
Compare
/black |
/build |
Signed-off-by: Nic Ma <nma@nvidia.com>
/build |
Signed-off-by: Nic Ma <nma@nvidia.com>
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, I have very minor style suggestions. I see you're using pydoc.locate
here and I wonder if we should have our own function in monai.utils.module
for doing this. This is a topic for some other time and place but I had used something like this in the past that worked well enough:
def find_type_def(qualified_name: str):
if "." not in qualified_name:
modname, defname = "builtins", qualified_name
else:
modname, defname = qualified_name.rsplit(".", 1)
mod = __import__(modname)
return getattr(mod, defname)
Signed-off-by: Nic Ma <nma@nvidia.com>
Hi @ericspod , Thanks for your review, I updated the PR accordingly. https://github.com/Project-MONAI/MONAI/blob/dev/monai/utils/module.py#L244 https://github.com/Project-MONAI/MONAI/blob/dev/monai/transforms/io/array.py#L208 If we want to change them together, maybe better to do a separate PR? Thanks. |
/black |
/build |
/build |
1 similar comment
/build |
Thanks I see that issue now. It should be done separately yes. |
/build |
1 similar comment
/build |
Hi @wyli , Do you know the root cause of Blossom system error here? Thanks in advance. |
/build |
part of #5821 .
Description
This PR enhanced the bundle CLI entry to support different customized bundle workflows.
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.