Skip to content

Commit

Permalink
use fill_value in LinearNDInterpolator constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
fandreuz committed Mar 5, 2021
1 parent 43fd50d commit 034b809
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ezyrb/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def fit(self, points, values):
:param array_like points: the coordinates of the points.
:param array_like values: the values in the points.
"""
self.intepolator = LinearNDInterpolator(points, values)
self.intepolator = LinearNDInterpolator(points, values,
fill_value=self.fill_value)

def predict(self, new_point):
"""
Expand Down

0 comments on commit 034b809

Please sign in to comment.