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

Give a more helpful error message if f returns an array with more than 1 dimension #6

Open
mattja opened this issue Sep 17, 2016 · 0 comments
Labels

Comments

@mattja
Copy link
Owner

mattja commented Sep 17, 2016

sdeint needs some tighter input validation, if people try to use a state vector y with shape (n,1) instead of (n,)
e.g. mattja/nsim#2

I see that scipy.integrate.odeint also refuses this kind of input. But it gives a proper error message:

RuntimeError: The array return by func must be one-dimensional, but got ndim=2.
@mattja mattja added the bug label Sep 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant