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 182affe commit 1293758Copy full SHA for 1293758
parcels/xgrid.py
@@ -463,6 +463,7 @@ def _search_1d_array(
463
float
464
Barycentric coordinate.
465
"""
466
+ # TODO v4: We probably rework this to deal with 0D arrays before this point (as we already know field dimensionality)
467
if len(arr) < 2:
468
return 0, 0.0
469
i = np.argmin(arr <= x) - 1
0 commit comments