-
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: fix symbolic coeffs for cross derivatives #2185
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2185 +/- ##
=======================================
Coverage 87.10% 87.10%
=======================================
Files 226 226
Lines 40183 40197 +14
Branches 7333 7335 +2
=======================================
+ Hits 35000 35014 +14
Misses 4603 4603
Partials 580 580
|
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.
uncontroversial
|
||
for j in range(len(coeffs)): | ||
subs.update({function._coeff_symbol | ||
(indices[j], deriv_order, function, index): coeffs[j]}) | ||
|
||
# Set all unused weights to zero | ||
for w in sweights: |
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.
cleaner:
subs.update({w: 0 for w in sweights if w not in subs})
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Self explanatory