-
Notifications
You must be signed in to change notification settings - Fork 6
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
model2.showODEs(method='vanKampen') -> IndexError: list index out of range #377
Comments
Reproduced with sympy 1.5.x but not 1.4.y. |
Temporary workarounds for DiODeProject#377 and DiODeProject#378.
With sympy 1.4 these lines after line 2893 in ODE_1 = solve(ode1, Derivative(PhiDict[nvec[0]], t), dict=True)
ODE_2 = solve(ode2, Derivative(PhiDict[nvec[1]], t), dict=True) result in But with Sympy 1.5.1 only empty lists are returned from the This appears to be due to Vlist_lhs, Vlist_rhs, substring = _get_orderedLists_vKE(stoich) assigning different values to (The latest docs for Sympy indicate that both the API and implementation of |
Exploring further, with Sympy 1.4 @jarmarshall Can you identify anything in the SymPy 1.5 or 1.5.1 release notes that might explain this? |
I don't see how that could ever be simplified to 0 with the assumptions SymPy has access to, so think it must be a bug... The following (fairly) minimal working example recreates the problem for me in terms of different behaviour between sympy v1.4 and 1.5, so I will raise an issue on sympy's GitHub:
|
Hmmm... checking a bit further, it's the simplification of the derivative of |
OK, my thinking is evolving on this - since the simplification is apparently happening inside a call to |
Not that I know of. Given SymPy 1.5 was released in December 2019 I agree that pinning The task of comparing |
Encountered when using Python 3.6 or 3.7 and latest acceptable versions of dependencies: see CI runs for #376
The text was updated successfully, but these errors were encountered: