-
Notifications
You must be signed in to change notification settings - Fork 288
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
Fix lookup table enhancement for multi-band datasets #360
Conversation
@@ -78,10 +78,10 @@ def apply_enhancement(data, func, exclude=None, separate=False, | |||
if pass_dask: | |||
dims = band_data.dims | |||
coords = band_data.coords | |||
d_arr = func(band_data.data) | |||
d_arr = func(band_data.data, index=idx) |
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.
Doesn't adding an index keyword argument break other enhancement functions that don't expect it?
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.
I tried to fix those I could find at least
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.
ie I couldn't find any more calls to apply_enhancement
that would require a change
Codecov Report
@@ Coverage Diff @@
## master #360 +/- ##
==========================================
- Coverage 69.18% 69.17% -0.02%
==========================================
Files 123 123
Lines 15691 15696 +5
==========================================
+ Hits 10856 10857 +1
- Misses 4835 4839 +4
Continue to review full report at Codecov.
|
Fix lookup table enhancement for multi-band datasets
git diff origin/master **/*py | flake8 --diff