Skip to content
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: more robust processing of custom weight with spacing #2489

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

mloubout
Copy link
Contributor

No description provided.

@mloubout mloubout added the API api (symbolics, types, ...) label Nov 17, 2024
@mloubout mloubout force-pushed the custom-coeff-spacing branch 4 times, most recently from 7ca8be2 to 21a0e31 Compare November 17, 2024 05:52
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

codecov bot commented Nov 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.29%. Comparing base (09f6912) to head (6f00de2).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2489   +/-   ##
=======================================
  Coverage   87.28%   87.29%           
=======================================
  Files         238      238           
  Lines       45347    45366   +19     
  Branches     4028     4029    +1     
=======================================
+ Hits        39583    39602   +19     
  Misses       5083     5083           
  Partials      681      681           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -85,7 +85,7 @@ def cross_derivative(expr, dims, fd_order, deriv_order, x0=None, side=None, **kw
return expr


@check_input
# @check_input
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover

return len(list(weights)), None
# Adimensional weight from custom coeffs need to be multiplied by h^order
if not all(sympify(w).has(dim.spacing) for w in weights if w != 0):
scale = True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scale = not all(....)

Copy link
Contributor

@FabioLuporini FabioLuporini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncontroversial now!

@mloubout mloubout merged commit 279f074 into master Nov 17, 2024
31 checks passed
@mloubout mloubout deleted the custom-coeff-spacing branch November 17, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API api (symbolics, types, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants