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

Add mode= in most functions to capture the class out of bounds errors. #19

Open
rainwoodman opened this issue Oct 2, 2017 · 1 comment

Comments

@rainwoodman
Copy link
Collaborator

Currently if we evaluate outside of the bounds an exception is raised. We can do better by handling this like scipy function, mode='raise'/'constant'/'nearest', and set the value accordingly without raising an exception. This becomes handy in interactive plotting.

@rainwoodman
Copy link
Collaborator Author

@energy-berkeley something like this

https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.interp.html

but default to left='raise', right='raise' could work.

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

No branches or pull requests

1 participant