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

Fix lookup table enhancement for multi-band datasets #360

Merged
merged 2 commits into from
Jul 4, 2018

Conversation

mraspaud
Copy link
Member

@mraspaud mraspaud commented Jul 3, 2018

Fix lookup table enhancement for multi-band datasets

  • Tests added
  • Tests passed
  • Passes git diff origin/master **/*py | flake8 --diff

@coveralls
Copy link

coveralls commented Jul 3, 2018

Coverage Status

Coverage decreased (-0.04%) to 69.145% when pulling f5384ec on fix-lut-lookup-enhancement into 3e23dec on master.

@@ -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)
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member Author

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
Copy link

codecov bot commented Jul 3, 2018

Codecov Report

Merging #360 into master will decrease coverage by 0.01%.
The diff coverage is 86.66%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
satpy/tests/test_enhancements.py 98.21% <100%> (+0.13%) ⬆️
satpy/enhancements/__init__.py 70.22% <81.81%> (-2.85%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e23dec...f5384ec. Read the comment docs.

@mraspaud mraspaud self-assigned this Jul 4, 2018
@mraspaud mraspaud merged commit 4247534 into master Jul 4, 2018
@mraspaud mraspaud deleted the fix-lut-lookup-enhancement branch July 4, 2018 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants