Skip to content

Commit d7cdd4b

Browse files
authored
Remove unnecessary (and possibly wrong) .data when y_fine is used (#254)
The use of `y_fine.data` rather than `y_fine` is probably left over from an early implementation where `y_fine` was a `DataArray` rather than a numpy array.
1 parent 8cd6781 commit d7cdd4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xbout/boutdataarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def interpolate_parallel(
352352
da[ycoord].attrs = {}
353353

354354
da = da.interp(
355-
{ycoord: y_fine.data},
355+
{ycoord: y_fine},
356356
assume_sorted=True,
357357
method=method,
358358
kwargs={"fill_value": "extrapolate"},

0 commit comments

Comments
 (0)