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 VII interpolator compatibility with future versions of xarray #45

Merged
merged 1 commit into from Mar 17, 2023

Conversation

djhoese
Copy link
Member

@djhoese djhoese commented Mar 16, 2023

As first noticed in pytroll/satpy#2416, there are failures for Satpy's VII reader tests when used with the unreleased version of xarray. Xarray is now more strict about using dask arrays for coordinates and indexing. The VII failure comes down to usage in this package and was a simple fix related to removing the use of dask. The arrays involved are relatively small and I think getting computed almost immediately by old xarray versions any way. This PR just converts everything to numpy.

CC @sjoro

  • Closes #xxxx
  • Tests added
  • Tests passed
  • Passes git diff origin/main **/*py | flake8 --diff
  • Fully documented

@codecov
Copy link

codecov bot commented Mar 16, 2023

Codecov Report

Merging #45 (c410c67) into main (412f742) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #45   +/-   ##
=======================================
  Coverage   88.03%   88.03%           
=======================================
  Files          21       21           
  Lines        1438     1438           
=======================================
  Hits         1266     1266           
  Misses        172      172           
Flag Coverage Δ
unittests 88.03% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
geotiepoints/viiinterpolator.py 98.11% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@coveralls
Copy link

Coverage Status

Coverage: 87.186%. Remained the same when pulling c410c67 on djhoese:bugfix-vii-xarray-nodask into 412f742 on pytroll:main.

@sjoro
Copy link
Contributor

sjoro commented Mar 17, 2023

LGTM!

@djhoese djhoese merged commit 6bfa0d4 into pytroll:main Mar 17, 2023
@djhoese djhoese deleted the bugfix-vii-xarray-nodask branch March 17, 2023 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants