Skip to content

Commit

Permalink
Merge pull request #972 from alanlujan91/CubicInterpFix
Browse files Browse the repository at this point in the history
Update interpolation.py
  • Loading branch information
sbenthall authored Feb 28, 2021
2 parents dc3e37f + 0ac63d2 commit 76051a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HARK/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,9 @@ def _evaluate(self, x):
+ x[out_top] * self.coeffs[self.n, 1]
- self.coeffs[self.n, 2] * np.exp(alpha * self.coeffs[self.n, 3])
)

y[x == self.x_list.min()] = self.y_list.min()

return y

def _der(self, x):
Expand Down

0 comments on commit 76051a3

Please sign in to comment.