Skip to content

Commit

Permalink
fix typo in HAS_METPY
Browse files Browse the repository at this point in the history
  • Loading branch information
shartgring authored Jan 9, 2025
1 parent 26875c4 commit bc27fba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hydromt_wflow/workflows/forcing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit bc27fba

Please sign in to comment.