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 fd273e9 commit d55edc1Copy full SHA for d55edc1
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,
@@ -501,6 +502,7 @@ def from_netcdf(
501
502
interp_method = interp_method[variable[0]]
503
else:
504
raise RuntimeError(f"interp_method is a dictionary but {variable[0]} is not in it")
505
+ interp_method = cast(InterpMethodOption, interp_method)
506
507
if "lon" in dimensions and "lat" in dimensions:
508
with NetcdfFileBuffer(
0 commit comments