Skip to content

Commit 1c638c8

Browse files
Merge pull request #2158 from OceanParcels/feature/morton-hashing
Feature/morton hashing
2 parents 807d2ee + 46ce99e commit 1c638c8

File tree

2 files changed

+315
-198
lines changed

2 files changed

+315
-198
lines changed

parcels/_index_search.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ def _search_indices_curvilinear_2d(
255255
): # TODO fix typing instructions to make clear that y, x etc need to be ndarrays
256256
yi, xi = yi_guess, xi_guess
257257
if yi is None or xi is None:
258-
faces = grid.get_spatial_hash().query(np.column_stack((y, x)))
259-
yi, xi = faces[0]
258+
yi, xi = grid.get_spatial_hash().query(y, x)
260259

261260
xsi = eta = -1.0 * np.ones(len(x), dtype=float)
262261
invA = np.array(

0 commit comments

Comments
 (0)