We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2db7be1 commit 06c2e80Copy full SHA for 06c2e80
parcels/field.py
@@ -3,7 +3,7 @@
3
import warnings
4
from collections.abc import Iterable
5
from pathlib import Path
6
-from typing import TYPE_CHECKING
+from typing import TYPE_CHECKING, cast
7
8
import dask.array as da
9
import numpy as np
@@ -20,6 +20,7 @@
20
from parcels._typing import (
21
GridIndexingType,
22
InterpMethod,
23
+ InterpMethodOption,
24
Mesh,
25
VectorType,
26
assert_valid_gridindexingtype,
@@ -519,6 +520,7 @@ def from_netcdf(
519
520
interp_method = interp_method[variable[0]]
521
else:
522
raise RuntimeError(f"interp_method is a dictionary but {variable[0]} is not in it")
523
+ interp_method = cast(InterpMethodOption, interp_method)
524
525
if "lon" in dimensions and "lat" in dimensions:
526
with NetcdfFileBuffer(
0 commit comments