Skip to content

Commit dbfe418

Browse files
KumoLiuericspod
andauthored
Ignore warning from nptyping as workaround (#8062)
workaround for #8061 ### Description Ignore warning from nptyping as workaround ### 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: YunLiu <[email protected]> Co-authored-by: Eric Kerfoot <[email protected]>
1 parent c9b8bdb commit dbfe418

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

monai/data/image_reader.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
)
3535
from monai.utils import MetaKeys, SpaceKeys, TraceKeys, ensure_tuple, optional_import, require_pkg
3636

37+
# workaround for https://github.com/Project-MONAI/MONAI/issues/8061
38+
warnings.filterwarnings("ignore", category=DeprecationWarning, module="nptyping")
39+
3740
if TYPE_CHECKING:
3841
import itk
3942
import nibabel as nib

0 commit comments

Comments
 (0)