Skip to content

Commit e46ccf2

Browse files
Update parcels/_index_search.py
Co-authored-by: Nick Hodgskin <[email protected]>
1 parent 01cfef6 commit e46ccf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parcels/_index_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def _search_indices_curvilinear(field, time, z, y, x, ti, particle=None, search2
408408
return (zeta, eta, xsi, zi, yi, xi)
409409

410410

411-
def _reconnect_bnd_indices(yi: int, xi: int, ydim: int, xdim: int, mesh_type: str):
411+
def _reconnect_bnd_indices(yi: int, xi: int, ydim: int, xdim: int, mesh_type: Mesh):
412412
xi = np.where(xi < 0, (xdim - 2) if mesh_type == "spherical" else 0, xi)
413413
xi = np.where(xi > xdim - 2, 0 if mesh_type == "spherical" else (xdim - 2), xi)
414414

0 commit comments

Comments
 (0)