m-squared96 / PyPLANE

An open source replacement to the traditional DFIELD and PPLANE applications for solving systems of ODEs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

calc_fixed_points should handle inability to solve for FPs gracefully

mjancen opened this issue · comments

For some systems of ODEs, the algorithm to solve this system symbolically has not yet been implemented in Sympy, and when sympy.solve is run on this system, it raises NotImplementedError. The calc_fixed_points function (which is currently the only function that uses sympy.solve) should be wrapped in a try-block wherever it is run so that the above case can be handled gracefully.

In the case of using calc_fixed_points in the constructor of a SystemOfEquations object, the fixed_points should probably be set to an empty set if the above error occurs.

Issue has been resolved by PR #49