Skip to content

Commit c4ab73b

Browse files
[#2017] Pass field explicitly to interpolation method
When using the _interp_method function pointer, we have to explicitly pass in the field as an argument.
1 parent 936d203 commit c4ab73b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

parcels/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def _search_indices(self, time: datetime, z, y, x, ei=None, search2D=False):
379379
def _interpolate(self, time: datetime, z, y, x, ei):
380380
try:
381381
bcoords, _ei, tau, ti = self._search_indices(time, z, y, x, ei=ei)
382-
val = self._interp_method(ti, _ei, bcoords, tau, time, z, y, x)
382+
val = self._interp_method(self, ti, _ei, bcoords, tau, time, z, y, x)
383383

384384
if np.isnan(val):
385385
# Detect Out-of-bounds sampling and raise exception

0 commit comments

Comments
 (0)