Skip to content

Commit 1293758

Browse files
committed
Add TODO comment
1 parent 182affe commit 1293758

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parcels/xgrid.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ def _search_1d_array(
463463
float
464464
Barycentric coordinate.
465465
"""
466+
# TODO v4: We probably rework this to deal with 0D arrays before this point (as we already know field dimensionality)
466467
if len(arr) < 2:
467468
return 0, 0.0
468469
i = np.argmin(arr <= x) - 1

0 commit comments

Comments
 (0)