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

Interpolator nan handling #55

Merged
merged 5 commits into from Aug 29, 2019

Conversation

maxmargraf
Copy link
Contributor

interpolator now returns nan field when provided with nan only input
interpolator can handle integer input

added two tests and fix

@codecov-io
Copy link

Codecov Report

Merging #55 into master will increase coverage by 0.17%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #55      +/-   ##
==========================================
+ Coverage   62.51%   62.69%   +0.17%     
==========================================
  Files          33       33              
  Lines        1566     1568       +2     
==========================================
+ Hits          979      983       +4     
+ Misses        587      585       -2
Impacted Files Coverage Δ
pycomlink/spatial/interpolator.py 91.36% <100%> (+1.58%) ⬆️

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 ee30076...2d08026. Read the comment docs.

@cchwala cchwala merged commit 0eeb088 into pycomlink:master Aug 29, 2019
@cchwala
Copy link
Contributor

cchwala commented Aug 29, 2019

Thanks @maxmargraf

maxmargraf added a commit to maxmargraf/pycomlink that referenced this pull request Nov 4, 2019
`PointsToGridInterpolator` now checks if only NaNs are passed as `z` values and returne a NaN grid in this case.

Furthermore, `z` is now forced to be an array of floats because the numba IDW loop fails if integers are passed.

Test for both casese were added.
@maxmargraf maxmargraf deleted the interpolator_nan_handling branch April 14, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants