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: Relax custom coefficient spacing enforcement #2530

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

mloubout
Copy link
Contributor

@mloubout mloubout commented Feb 6, 2025

No description provided.

@mloubout mloubout added the API api (symbolics, types, ...) label Feb 6, 2025
@mloubout mloubout force-pushed the custom-coeff-spacing2 branch from 2b9c9da to 9d5d507 Compare February 6, 2025 14:35
@@ -339,5 +339,8 @@ def process_weights(weights, expr, dim):
return shape[weights.dimensions.index(wdim)], wdim, False
else:
# Adimensional weight from custom coeffs need to be multiplied by h^order
scale = not all(sympify(w).has(dim.spacing) for w in weights if w != 0)
if all(sympify(w).is_Number for w in weights):
Copy link
Contributor

Choose a reason for hiding this comment

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

scale = all(...)

@mloubout mloubout force-pushed the custom-coeff-spacing2 branch from 9d5d507 to afdde39 Compare February 6, 2025 14:49
@FabioLuporini
Copy link
Contributor

GTG

Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.30%. Comparing base (e8bf1fb) to head (afdde39).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2530   +/-   ##
=======================================
  Coverage   87.30%   87.30%           
=======================================
  Files         238      238           
  Lines       45972    45990   +18     
  Branches     4074     4075    +1     
=======================================
+ Hits        40134    40152   +18     
  Misses       5150     5150           
  Partials      688      688           

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

@mloubout mloubout merged commit 5a6d48e into master Feb 6, 2025
31 checks passed
@mloubout mloubout deleted the custom-coeff-spacing2 branch February 6, 2025 16:10
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