Skip to content

Commit

Permalink
Ignore warning from nptyping as workaround (#8062)
Browse files Browse the repository at this point in the history
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 <55491388+KumoLiu@users.noreply.github.com>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
  • Loading branch information
KumoLiu and ericspod authored Sep 2, 2024
1 parent c9b8bdb commit dbfe418
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions monai/data/image_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
)
from monai.utils import MetaKeys, SpaceKeys, TraceKeys, ensure_tuple, optional_import, require_pkg

# workaround for https://github.com/Project-MONAI/MONAI/issues/8061
warnings.filterwarnings("ignore", category=DeprecationWarning, module="nptyping")

if TYPE_CHECKING:
import itk
import nibabel as nib
Expand Down

0 comments on commit dbfe418

Please sign in to comment.