-
Notifications
You must be signed in to change notification settings - Fork 245
api: Extend side API to all derivative operator shortcuts #2811
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: main
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 @@
## main #2811 +/- ##
==========================================
+ Coverage 82.42% 83.00% +0.57%
==========================================
Files 248 248
Lines 50979 51063 +84
Branches 4489 4491 +2
==========================================
+ Hits 42021 42383 +362
+ Misses 8175 7909 -266
+ Partials 783 771 -12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mloubout
left a comment
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.
Some nitpick comments, might wanna add shortcuts/aliases gradc/divc/... as well
|
|
||
| @property | ||
| def laplace(self): | ||
| def laplace(self, **kwargs): |
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.
No laplace is a propery and doesn't take kwargs, laplacian is the one with the kwargs
| Custom weights for the finite differences. | ||
| Custom weights for the finite difference coefficients. | ||
| """ | ||
| side = kwargs.get("side") |
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.
explicitly add to def
| weights/w: list, tuple, or dict, optional, default=None | ||
| Custom weights for the finite difference coefficients. | ||
| """ | ||
| side = kwargs.get("side") |
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.
add to def
Addresses #2808