You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseAssertionError("transforms and weights should be same size if both specified as sequences.")
could be improved to have a more specific type, and the error messages can be more specific about the variables:
iflen(weights) !=len(self.transforms):
raiseValueError(
f"transforms and weights should be same size, got {len(weights)} and {len(self.transforms)}."
)
The text was updated successfully, but these errors were encountered:
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
part of #5898
### 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).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.
---------
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <831580+wyli@users.noreply.github.com>
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Is your feature request related to a problem? Please describe.
AssertionError such as this case:
MONAI/monai/transforms/compose.py
Lines 223 to 224 in 86c7ecd
could be improved to have a more specific type, and the error messages can be more specific about the variables:
The text was updated successfully, but these errors were encountered: