From 19686fc9bc8f96fd01134e26171948cdfd4050bf Mon Sep 17 00:00:00 2001 From: David Manthey Date: Fri, 19 Jul 2024 12:26:05 -0400 Subject: [PATCH] Better filter out zarr warnings The future warnings are just noise until there are new packages available --- sources/zarr/large_image_source_zarr/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/zarr/large_image_source_zarr/__init__.py b/sources/zarr/large_image_source_zarr/__init__.py index 6867f4ac6..680cc418e 100644 --- a/sources/zarr/large_image_source_zarr/__init__.py +++ b/sources/zarr/large_image_source_zarr/__init__.py @@ -28,8 +28,6 @@ pass -warnings.filterwarnings('ignore', category=FutureWarning, module='zarr') - zarr = None @@ -43,6 +41,8 @@ def _lazyImport(): if zarr is None: try: import zarr + + warnings.filterwarnings('ignore', category=FutureWarning, module='.*zarr.*') except ImportError: msg = 'zarr module not found.' raise TileSourceError(msg)