Skip to content

api: introduce nearset neighboor interpolation and assignment injection for it - #3003

Merged
mloubout merged 2 commits into
mainfrom
no-incr-inject
Aug 13, 2026
Merged

api: introduce nearset neighboor interpolation and assignment injection for it#3003
mloubout merged 2 commits into
mainfrom
no-incr-inject

Conversation

@mloubout

Copy link
Copy Markdown
Contributor

No description provided.

@mloubout mloubout added the API api (symbolics, types, ...) label Aug 13, 2026
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.73913% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.61%. Comparing base (e26adc2) to head (3c52121).

Files with missing lines Patch % Lines
devito/types/sparse.py 81.81% 2 Missing ⚠️
devito/operations/interpolators.py 96.87% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3003      +/-   ##
==========================================
+ Coverage   83.60%   83.61%   +0.01%     
==========================================
  Files         257      257              
  Lines       54114    54185      +71     
  Branches     4622     4626       +4     
==========================================
+ Hits        45241    45307      +66     
- Misses       8075     8080       +5     
  Partials      798      798              
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.54% <79.06%> (+0.01%) ⬆️
pytest-gpu-gcc- 78.27% <96.73%> (+0.04%) ⬆️
pytest-gpu-icx- 78.21% <96.73%> (+0.04%) ⬆️
pytest-gpu-nvc-nvidiaX 69.19% <79.06%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@FabioLuporini FabioLuporini left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OK

implicit_dims = implicit_dims + tuple(r.parent for r in
self._rdim(subdomain=subdomain,
shifts=shifts))
with suppress(AttributeError):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In what case would an attribute error be expected here?

@mloubout mloubout Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nearest has "empty" rdim so doesn't have a parent attribute

@mloubout
mloubout merged commit bb78b3e into main Aug 13, 2026
42 checks passed
@mloubout
mloubout deleted the no-incr-inject branch August 13, 2026 11:27
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.

3 participants