Skip to content

Commit

Permalink
Merge branch 'point-forcing' of https://github.com/Deltares/hydromt_w…
Browse files Browse the repository at this point in the history
…flow into point-forcing
  • Loading branch information
shartgring committed Jan 10, 2025
2 parents 44baaa7 + bc27fba commit a893f3b
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 a893f3b

Please sign in to comment.