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

Symbolic inner products test does not pass with sympy>=1.9 #17

Closed
jodemaey opened this issue Mar 2, 2023 · 2 comments
Closed

Symbolic inner products test does not pass with sympy>=1.9 #17

jodemaey opened this issue Mar 2, 2023 · 2 comments
Assignees
Labels
bug Something isn't working fixed

Comments

@jodemaey
Copy link
Member

jodemaey commented Mar 2, 2023

Since the new versions of Sympy, the symbolic inner products test does not pass:

screenshot_from_2023-03-02_14-28-16

Above you can see the result of the test with Sympy 1.9 .

If you use the symbolic inner products with qgs, you need to install the version 1.8 of Sympy to avoid any problems. Please also consider running the tests yourself on your machine to be sure that you can trust the model output.

A first simple patch will be provided asap, simply enforcing Sympy 1.8 in the requirements.

We are working on a definitive solution to this issue but this may take some weeks.

@jodemaey jodemaey added the bug Something isn't working label Mar 2, 2023
jodemaey added a commit that referenced this issue Mar 2, 2023
Temporary solution to the issue #17
@jodemaey
Copy link
Member Author

jodemaey commented Mar 2, 2023

The quick temporary fix was released with the commit fc4faed

@jodemaey
Copy link
Member Author

jodemaey commented Mar 16, 2023

A final bugfix was merged in master branch today.
Basically this bug was due to Sympy probably being now more cautious in substitution of variables, and this impacted the setting of the aspect ratio parameter in the symbolic inner products. This has been solved by being more rigorous in coding this parameter substitutions in the symbolic inner products.

Impact for the users

Actually, most of the example notebooks and scripts using the symbolic inner products were not impacted by this bug because it only happened if you defined the symbolic basis before setting the model domain aspect ratio, which none of the said scripts and notebooks did. So in general users were not impacted by this bug and can trust their previous model outputs, unless they played with the aspect ratio at various points in their scripts.

Users who want more details or verifications can contact me directly (@jodemaey).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants