-
Couldn't load subscription status.
- Fork 31
3189 sympy handling equal #3191
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3191 +/- ##
=======================================
Coverage 99.90% 99.90%
=======================================
Files 376 376
Lines 53156 53161 +5
=======================================
+ Hits 53104 53109 +5
Misses 52 52 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The link check failure is because of https://www.khronos.org/files/opencl22-reference-guide.pdf, which I just manually tested and it seems to work now. This is basically ready for review, but it must run the full CI (since previously logical comparisons using I hit that problem when inlining (for my training), and it converted the condition pointed out in #3189 to a This PR is blocking #1623 for that reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Joerg. Just a couple of things to tidy and then this can be merged.
| def test_sympy_writer_logicals(fortran_reader: FortranReader, | ||
| fortran_expr: str, | ||
| sympy_str: str): | ||
| '''Test handling of user-defined types, e.g. conversion of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not the fault of this PR but I've just noticed that this docstring is wrong :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. Done.
| is .NEQV.''' | ||
| return f"({'.NEQV.' .join(self._print(i) for i in expr.args)})" | ||
|
|
||
| def _print_Equality(self, expr): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please could you add -> str to all of these handlers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - I tried to look at what expr is, but that appears to be not straight forward, and I didn't want to dive any further into SymPy ... so I left them :) I also disabled two pylint warnings.
|
Updated to latest master. I will trigger the CI on Monday. |
|
CI passed. |
A small change to fix #3189 by converting Fortran
==into SymPyEq(...).