(method)
| 141 | @requires_scipy |
| 142 | @pytest.mark.parametrize("method", ["barycentric", "krogh", "pchip", "spline", "akima"]) |
| 143 | def test_scipy_methods_function(method) -> None: |
| 144 | # Note: Pandas does some wacky things with these methods and the full |
| 145 | # integration tests won't work. |
| 146 | da, _ = make_interpolate_example_data((25, 25), 0.4, non_uniform=True) |
| 147 | if method == "spline": |
| 148 | with pytest.warns(PendingDeprecationWarning): |
| 149 | actual = da.interpolate_na(method=method, dim="time") |
| 150 | else: |
| 151 | actual = da.interpolate_na(method=method, dim="time") |
| 152 | assert (da.count("time") <= actual.count("time")).all() |
| 153 | |
| 154 | |
| 155 | @requires_scipy |
nothing calls this directly
no test coverage detected
searching dependent graphs…