Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CubicInterp on lower bound returns np.nan #971

Closed
alanlujan91 opened this issue Feb 28, 2021 · 0 comments · Fixed by #972
Closed

CubicInterp on lower bound returns np.nan #971

alanlujan91 opened this issue Feb 28, 2021 · 0 comments · Fixed by #972

Comments

@alanlujan91
Copy link
Member

Describe the bug
Evaluating CubicInterp on x_list.min() produces np.nan.

To Reproduce
See example notebook https://gist.github.com/alanlujan91/ee468fb3e83c411eaccbfb22d4943a69

Expected behavior
The problem is solved when lower_extrap=True, but evaluating at x_list.min() is not lowe extrapolation, should be evaluated by default. In some instances we might want lower_extrap=False and interp(x_list.min()) = y_list.min().

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Econ-ARK and Python version: 0.10.8 and python 3.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant