Skip to content

Commit fba692e

Browse files
committed
use direct import to fix circular ImportError
1 parent af7e2d5 commit fba692e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

verde/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@
2727
except ImportError:
2828
numba = None
2929

30+
import verde.KNeighbors
31+
3032
from .base.utils import (
3133
check_coordinates,
3234
check_data,
3335
check_data_names,
3436
check_extra_coords_names,
3537
n_1d_arrays,
3638
)
37-
from .neighbors import KNeighbors
3839

3940

4041
def dispatch(function, delayed=False, client=None):
@@ -886,7 +887,7 @@ def fill_missing(
886887
grid = grid.copy()
887888

888889
if interpolator is None:
889-
interpolator = KNeighbors(k=5)
890+
interpolator = verde.KNeighbors(k=5)
890891

891892
# if input was a datarray turn into dataset
892893
if isinstance(grid, xr.DataArray):

0 commit comments

Comments
 (0)