Skip to content

Commit

Permalink
Merge pull request #135 from fAndreuzzi/issue-129
Browse files Browse the repository at this point in the history
Use fill_value in LinearNDInterpolator constructor
  • Loading branch information
ndem0 committed Mar 5, 2021
2 parents aaa2a61 + 034b809 commit 1be49aa
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 1be49aa

Please sign in to comment.