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

Fix sympy test #1009

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

contradict
Copy link

This test was failing locally with

Expression: SymPy.simplify(symbolics_to_sympy(Symbolics.solve_for(expr, p))) == (SymPy.solve(sexpr, sp))[1]
 Evaluated: -2*t*(x^2 + y(t) - 1)/(x^2 + x + y(t) - 1) == 2*t*(-x^2 - y(t) + 1)/(x^2 + x + y(t) - 1)

While equal, they are not the same expression. SymPy.simplify and SymPy.solve don't seem to guarantee identical expressions, so pass both results through simplify to ensure they are comparable.

This test was failin localy with

    Expression: SymPy.simplify(symbolics_to_sympy(Symbolics.solve_for(expr, p))) == (SymPy.solve(sexpr, sp))[1]
     Evaluated: -2*t*(x^2 + y(t) - 1)/(x^2 + x + y(t) - 1) == 2*t*(-x^2 - y(t) + 1)/(x^2 + x + y(t) - 1)

While equal, they are not the same expression. `SymPy.simplify` and
`SymPy.solve` don't seem to guarantee identical expressions, so pass
both results through `simplify` to ensure they are comparable.
@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2023

Codecov Report

Merging #1009 (019542c) into master (43f93d0) will decrease coverage by 61.39%.
The diff coverage is n/a.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff             @@
##           master    #1009       +/-   ##
===========================================
- Coverage   77.99%   16.61%   -61.39%     
===========================================
  Files          28       28               
  Lines        3381     3335       -46     
===========================================
- Hits         2637      554     -2083     
- Misses        744     2781     +2037     

see 26 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

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 this pull request may close these issues.

None yet

3 participants