sisl / GridInterpolations.jl

Multidimensional grid interpolation in arbitrary dimensions
Other
52 stars 12 forks source link

Add tests #10

Closed ptoman closed 7 years ago

ptoman commented 7 years ago

Adds a variety of tests to the GridInterpolations.jl framework for simplex and multilinear interpolation.

===

This supersedes a previous pull request that included interpolations using k-nearest neighbors, re: a discussion between @zsunberg and I. This PR does not include kNN material. We convinced ourselves to exclude kNN because it's too much work for too little/no gain. Specifically:

If folks want the kNN implementations (if, for instance, they have a theoretical reason to want to use kNN with some odd distance metric, or they want to look into kNN on random points instead of grids for real problems to test the Bergstra & Bengio explanation for POMDPs), it is available in the archived pull request and in the source fork.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-1.4%) to 91.266% when pulling e60cf4af46ec5c02f4db3f524d4389e4e7d699b4 on ptoman:add_tests into 3559c40362b5b12beaf9681f4a804b76592f794c on sisl:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-1.4%) to 91.266% when pulling e60cf4af46ec5c02f4db3f524d4389e4e7d699b4 on ptoman:add_tests into 3559c40362b5b12beaf9681f4a804b76592f794c on sisl:master.

zsunberg commented 7 years ago

Thanks for contributing this @ptoman. The added tests are very helpful. I guess the coverage % decrease is because of adding the code to the benchmark functions in src, which is fine.

ptoman commented 7 years ago

I'm pretty sure the test coverage decreased because I commented out some of the benchmarking tests. I just uncommented them and re-pushed to the fork. Should I submit another pull request?

zsunberg commented 7 years ago

Oh yeah sure, that would be great!

On Thu, Jan 12, 2017, 15:16 Pamela Toman notifications@github.com wrote:

I'm pretty sure the test coverage decreased because I commented out some of the benchmarking tests. I just uncommented them and re-pushed to the fork. Should I submit another pull request?

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/sisl/GridInterpolations.jl/pull/10#issuecomment-272314633, or mute the thread https://github.com/notifications/unsubscribe-auth/AEC0axPA4D8m_Ymv8TKmcKHuVCIp05Duks5rRrRbgaJpZM4LiU4Y .