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 89593f2 commit 06cd7a9Copy full SHA for 06cd7a9
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,
@@ -515,6 +516,7 @@ def from_netcdf(
515
516
interp_method = interp_method[variable[0]]
517
else:
518
raise RuntimeError(f"interp_method is a dictionary but {variable[0]} is not in it")
519
+ interp_method = cast(InterpMethodOption, interp_method)
520
521
if "lon" in dimensions and "lat" in dimensions:
522
with NetcdfFileBuffer(
0 commit comments