From da5de8d50ce193bb466b49bdf48e9e1129808a1e Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 13 Dec 2023 23:08:35 +0100 Subject: [PATCH] address numpy binary incompatibility warning when reading NetCDFs --- eomaps/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eomaps/__init__.py b/eomaps/__init__.py index 694620546..959c260aa 100644 --- a/eomaps/__init__.py +++ b/eomaps/__init__.py @@ -1,3 +1,9 @@ +from .helpers import register_modules as _register_modules + +# address numpy runtime warning concerning binary incompatibility when +# reading NetCDF files (see https://github.com/pydata/xarray/issues/7259) +_register_modules("netCDF4", raise_exception=False) + from .eomaps import Maps from .mapsgrid import MapsGrid from ._version import __version__