-
Notifications
You must be signed in to change notification settings - Fork 15
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
Handle Loki dimension pragmas for modules (and not only routines) for FP #417
Conversation
Documentation for this branch can be viewed at https://sites.ecmwf.int/docs/loki/417/index.html |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #417 +/- ##
=======================================
Coverage 93.04% 93.05%
=======================================
Files 198 198
Lines 39320 39359 +39
=======================================
+ Hits 36587 36627 +40
+ Misses 2733 2732 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and simple and well tested. LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fully agreed with @mlange05 's comment. Many thanks!
def to_str(expr): | ||
return str(expr).lower().replace(' ', '') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like we're missing a StrCompareMixin somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but that's an (internally) know issue; we don't force StrCompareMixin
on pure operations (Sum
, Product
, etc.). We could, probably, but beyond this PR I'd argue? Maybe we need a separate (formal) issue on this though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes fully agreed - I didn't mean to imply this needs to be actioned here. Documenting this in an issue would be a good idea, though.
Infer shape via Loki dimension pragmas, e.g.,
not only for routines but also for modules (FP only).