From bc27fbaf294cdb6cfeeff3fae22bd22755a655cc Mon Sep 17 00:00:00 2001 From: shartgring <103518935+shartgring@users.noreply.github.com> Date: Thu, 9 Jan 2025 09:21:18 +0100 Subject: [PATCH] fix typo in HAS_METPY --- hydromt_wflow/workflows/forcing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hydromt_wflow/workflows/forcing.py b/hydromt_wflow/workflows/forcing.py index f122f836..16f62efd 100644 --- a/hydromt_wflow/workflows/forcing.py +++ b/hydromt_wflow/workflows/forcing.py @@ -12,9 +12,9 @@ try: from metpy.interpolate import interpolate_to_grid, remove_nan_observations - HAS_MEPTY = True + HAS_METPY = True except ImportError: - HAS_MEPTY = False + HAS_METPY = False logger = logging.getLogger(__name__) @@ -167,7 +167,7 @@ def spatial_interpolation( time = forcing.index data = [] - if not HAS_MEPTY: + if not HAS_METPY: raise ModuleNotFoundError("MetPy package is required for spatial interpolation") if np.isnan(forcing.values).any():