Skip to content

Conversation

@FabioLuporini
Copy link
Contributor

Supersedes #2717

@codecov
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

❌ Patch coverage is 87.42138% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.55%. Comparing base (764b075) to head (8e55290).
⚠️ Report is 48 commits behind head on main.

Files with missing lines Patch % Lines
devito/passes/iet/definitions.py 72.72% 6 Missing and 3 partials ⚠️
devito/ir/cgen/printer.py 33.33% 4 Missing ⚠️
devito/passes/iet/engine.py 75.00% 4 Missing ⚠️
devito/arch/archinfo.py 0.00% 2 Missing ⚠️
devito/symbolics/extended_sympy.py 94.44% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2748      +/-   ##
==========================================
- Coverage   83.05%   82.55%   -0.51%     
==========================================
  Files         248      248              
  Lines       50294    50379      +85     
  Branches     4426     4431       +5     
==========================================
- Hits        41773    41589     -184     
- Misses       7763     8019     +256     
- Partials      758      771      +13     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX ?
pytest-gpu-nvc-nvidiaX 69.26% <63.50%> (-0.03%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 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.

@mloubout mloubout added the API api (symbolics, types, ...) label Oct 1, 2025
initvalue = tuple(i.subs(subs_user) for i in k)
w = weights[k] = w0._rebuild(name=name, dtype=dtype, initvalue=initvalue)

rebuilt = expr._subs(w0.indexed, w.indexed)
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just expr._rebuild(weights=w)?

def __hash__(self):
return hash((super().__hash__(), self.sub_iterators,
self.directions))
return hash((super().__hash__(), self.sub_iterators, self.directions))
Copy link
Contributor

Choose a reason for hiding this comment

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

Would having a hashable items attribute like we use in some other classes clean this up a little?


"""
Abstract base class for all terminal objects, that is, those objects
collected by `retrieve_terminals` in addition to all other SymPy atoms
Copy link
Contributor

@EdCaunt EdCaunt Oct 2, 2025

Choose a reason for hiding this comment

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

This is a somewhat tautologous definition. What conceptually is a "terminal" here?

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