-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Amended too long lines in conditionset.py #12491
Conversation
@@ -39,10 +39,20 @@ def __new__(cls, sym, condition, base_set): | |||
if isinstance(base_set, EmptySet): | |||
return base_set | |||
if isinstance(base_set, FiniteSet): | |||
sifted = sift(base_set, lambda _: fuzzy_bool(condition.subs(sym, _))) |
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.
We tend to not prettify these too much. How about the following?
sifted = sift(base_set, lambda _: fuzzy_bool(
condition.subs(sym, _)))
return Union(FiniteSet(*sifted[True]), Basic.__new__(
cls, sym, condition, FiniteSet(*sifted[None])))
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.
Hi. Sure, I will fix this.
@Newman101 Maybe this can be merged once you change what was suggested. |
Sure, I will do these next. |
Took a while but it's done now - both tests ran locally, all green. |
I had restarted the failing test, it has passed now. Thanks, I am merging this. |
Good to know, thanks! |
Hi.
I rectified couple of issues with file sympy/sets/conditionset.py:
./bin/test quality executed locally - all green.
Thank you.