-
Notifications
You must be signed in to change notification settings - Fork 28
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
(closes #717) Remove unused code #2725
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2725 +/- ##
==========================================
- Coverage 99.86% 99.86% -0.01%
==========================================
Files 354 354
Lines 49112 48893 -219
==========================================
- Hits 49048 48829 -219
Misses 64 64 ☔ View full report in Codecov by Sentry. |
a7f843d
to
fb6a787
Compare
This is ready for review. Initially I just wanted to delete some unused test, but then realised that the WHERE fix also solves the last passthrough file in NEMOv4 🥳 and it has a TODO to this issue. After removing it from the excluded file another issue hit that file: the fact that we cannot distinguish between imported calls with arguments and arrays. This was somewhat fixed in ACCKernels by listing all the NEMO FUNCTIONS, so I generalised that into utils so it can be used by all transformations. It passed the integration tests with expected performance. One for @arporter (since it touches the NEMO ACC Kernels) or @LonelyCat124 |
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 work Sergi. There ought to be some prize for the PR which removes the most code. Tests all OK, integration tests look good. Reference guide unchanged.
Coverage unaffected.
Just a few minor things to tidy and then this can go on.
@arporter This is ready for another review |
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.
All good now. I've re-triggered the integration tests as master has moved on since they were last run for this branch.
Integration tests were green. |
#717 was the same than #2687 but there were some TODOs associated to it. Looking at them it turns out that they where related to the array shape querying ulility functionality in fparser2, but these are now unused (other than in its own tests) as we use the ArrayMixin utility methods.