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
### Description
Fixes#6086 remove the channel check
Fixes#6087 internally using `float('nan')` to also represent
`"no_channel"`
### 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).
- [x] New tests added to cover the changes.
- [ ] 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.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.
---------
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
the error condition here is too restrictive:
MONAI/monai/transforms/utility/array.py
Lines 374 to 375 in ab800d8
e.g. single channel input works fine in numpy (and pytorch):
cc @holgerroth
The text was updated successfully, but these errors were encountered: