Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Sep 3, 2024
1 parent 77f1690 commit 0f03a52
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions geoutils/raster/interpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def _interpn_interpolator(
new_mask = mask_nan.astype("uint8")

# We create an interpolator for the nodata mask using nearest
interp_mask = RegularGridInterpolator(
points, new_mask, method="nearest", bounds_error=bounds_error, fill_value=1
)
interp_mask = RegularGridInterpolator(points, new_mask, method="nearest", bounds_error=bounds_error, fill_value=1)

# Most methods (cubic, quintic, etc) do not support NaNs and require an array full of valid values
# We replace thus replace all NaN values by nearest neighbours to give surrounding values of the same order of
Expand Down

0 comments on commit 0f03a52

Please sign in to comment.