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

IR: Move expr_visitors to loki.ir #372

Merged
merged 3 commits into from
Oct 4, 2024
Merged

IR: Move expr_visitors to loki.ir #372

merged 3 commits into from
Oct 4, 2024

Conversation

mlange05
Copy link
Collaborator

@mlange05 mlange05 commented Sep 5, 2024

Just testing for now...

Note: This sits on top of #366, because it moves the new tests alongside it.

Another refactoring change that moves the definition of various IR visitors (expr_visitors.py) to the loki.ir package. This means that now, at least in principle, we only have a one-way dependency between loki.ir => loki.expression - and where this is broken, it is marked as such via local imports with pylint markers.

Integration note: I'll leave this as draft until #366 is merged, so that the diff is not too overwhelming.

Copy link

github-actions bot commented Sep 5, 2024

Documentation for this branch can be viewed at https://sites.ecmwf.int/docs/loki/372/index.html

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.48%. Comparing base (477c56d) to head (189ce63).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #372      +/-   ##
==========================================
- Coverage   95.48%   95.48%   -0.01%     
==========================================
  Files         185      185              
  Lines       38651    38646       -5     
==========================================
- Hits        36907    36901       -6     
- Misses       1744     1745       +1     
Flag Coverage Δ
lint_rules 96.39% <ø> (ø)
loki 95.46% <100.00%> (-0.01%) ⬇️

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.

@mlange05 mlange05 marked this pull request as ready for review September 7, 2024 05:04
Copy link
Collaborator

@reuterbal reuterbal left a comment

Choose a reason for hiding this comment

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

Thank you very much for cleaning this up and the tedious work of updating all the imports accordingly. This is a fundamentally sensible thing to do and has been recognized also by others.

Changes look good to me! :shipit:

@reuterbal reuterbal added the ready for merge This PR has been approved and is ready to be merged label Oct 4, 2024
@reuterbal reuterbal merged commit cc179b3 into main Oct 4, 2024
13 checks passed
@reuterbal reuterbal deleted the naml-ir-expr-visitor branch October 4, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge This PR has been approved and is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants