-
Notifications
You must be signed in to change notification settings - Fork 300
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
Add no-op image_ready enhancement #2933
Conversation
I'm curious to see if there's a performance boost to what I've had before. I've only added a |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2933 +/- ##
=======================================
Coverage 96.08% 96.08%
=======================================
Files 375 375
Lines 54578 54586 +8
=======================================
+ Hits 52441 52449 +8
Misses 2137 2137
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
IIRC, the stretch function is "smart" and doesn't do anything if min and max are respectively 0 and 1. But the method in this PR is cleaner I think. |
Pull Request Test Coverage Report for Build 11379521585Details
💛 - Coveralls |
You were right, no difference in performance. |
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.
LGTM
What is the difference between using this and a simple |
IIRC, if operations is empty, a default enhancement is applied. This block any enhancement. |
As far as I remember, |
Ok, I can check, but either way, isn't it better to have it explicit? |
Exactly, as Gerrit is saying, |
Probably yes, but then please also update the documentation in the warning box that Andrea linked :) |
Will do! |
This PR adds a no-op enhancement for data that is image-ready, ie where nothing needs to be done. The enhancement key (standard_name) is called
image_ready
.I didn't add any test, as the function is not doing anything. But shout if you think I should do otherwise.