-
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
config component shouldn't allow duplicated arguments #5471
Comments
5 tasks
wyli
pushed a commit
that referenced
this issue
Mar 29, 2023
Fixes #5471 . ### Description [WIP] Monai will now raise an error whenever there is a duplicated key in any of the config json files. TBD: - support similiar thing when reading from yaml Things to discuss: - do we want to raise an Error or do we just want a warning message? - This will raise with the first duplicate encountered, not with a full list, but I think that's a fair & simple approach. ### 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. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. (I couldn't run them locally due to OOM) - [x] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [x] In-line docstrings updated. ~~Documentation updated, tested `make html` command in the `docs/` folder.~~ I think that's a safeguard that doesn't require explicit documentation --------- Signed-off-by: Tomasz Bartczak <kretesenator@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
in this configuration example, the duplicated
num_workers
is currently quietly allowed, which is error-prone in my understandingcc @Nic-Ma
The text was updated successfully, but these errors were encountered: