-
Notifications
You must be signed in to change notification settings - Fork 229
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
api: Cleanup and improve SubFunction #2198
Conversation
3fd6595
to
74a92ab
Compare
Codecov Report
@@ Coverage Diff @@
## master #2198 +/- ##
=======================================
Coverage 87.08% 87.08%
=======================================
Files 228 228
Lines 40579 40611 +32
Branches 7419 7429 +10
=======================================
+ Hits 35337 35367 +30
- Misses 4642 4644 +2
Partials 600 600
... and 1 file with indirect coverage changes 📢 Have feedback on the report? Share it here. |
729b68e
to
5fb05ab
Compare
for k, v in w_funcs.items()]) | ||
except AttributeError: | ||
assert w_funcs == 0 | ||
if len(w_funcs) > 1: |
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.
@FabioLuporini this does not fix the pickle reconstruction issue with (-1)*
so left the _print_Mul
in printer for the time being.
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.
OK. Can you open an issue about that and refer to the failing test without the hack?
|
||
expr = sf.inject(m, Float(1.)) | ||
sf.data.fill(1.) | ||
expr = sf.inject(m, sf) |
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.
This one is actually a consequence of removing parent
as injecting 1
akes an operator that does not process sf
anymore as an argument as it was only processed through the coordinates as a parent
5fb05ab
to
2a3654b
Compare
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, uncontroversial
for k, v in w_funcs.items()]) | ||
except AttributeError: | ||
assert w_funcs == 0 | ||
if len(w_funcs) > 1: |
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.
OK. Can you open an issue about that and refer to the failing test without the hack?
2a3654b
to
68c29d4
Compare
Fixes #2192
subs/rebuild
of SparseFunction to properly propagate through the subfunctions (coords, ...)