-
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
5998 improves error messages in monai/transforms #5961
Conversation
Signed-off-by: Wenqi Li <wenqil@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.
These places may also need to be updated.
MONAI/monai/transforms/adaptors.py
Line 171 in 82cd668
raise ValueError("if 'inputs' is a string, function may only have a single non-variadic parameter") |
MONAI/monai/transforms/adaptors.py
Line 197 in 82cd668
raise ValueError("'outputs' must have the same length as the number of elements that were returned") |
MONAI/monai/transforms/adaptors.py
Line 204 in 82cd668
raise ValueError("'outputs' must be of length one if it is a list or tuple") |
MONAI/monai/transforms/utils.py
Line 928 in 82cd668
raise ValueError("margin value should not be negative number.") |
MONAI/monai/transforms/utils.py
Line 1068 in 82cd668
raise ValueError("If input not one-hotted, should only be 1 channel.") |
MONAI/monai/transforms/intensity/array.py
Line 268 in 82cd668
raise ValueError("offsets should be a number or pair of numbers.") |
MONAI/monai/transforms/intensity/array.py
Line 384 in 82cd668
raise ValueError("factors should be a number or pair of numbers.") |
MONAI/monai/transforms/intensity/array.py
Line 491 in 82cd668
raise ValueError("factors should be a number or pair of numbers.") |
MONAI/monai/transforms/intensity/array.py
Line 548 in 82cd668
raise ValueError("degree should be no less than 1.") |
MONAI/monai/transforms/intensity/array.py
Line 728 in 82cd668
raise ValueError("threshold must be a float or int number.") |
MONAI/monai/transforms/intensity/array.py
Line 815 in 82cd668
raise ValueError("gamma must be a float or int number.") |
MONAI/monai/transforms/intensity/array.py
Lines 849 to 851 in 82cd668
raise ValueError( | |
"if gamma is single number, must greater than 0.5 and value is picked from (0.5, gamma)" | |
) |
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> Signed-off-by: Wenqi Li <831580+wyli@users.noreply.github.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
/build |
Signed-off-by: Wenqi Li wenqil@nvidia.com
part of #5898
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.