Beispiel #1
0
def test_interpolate1D_out_of_bounds(x, expected):
    interp = functions.Interpolate1D(pairs = zip(Xs, Ys), saturate = False)
    with pytest.raises(ValueError):
        interp(x) == expected
Beispiel #2
0
def test_interpolate1D_out_of_bounds(x, expected):
    interp = functions.Interpolate1D(xs = Xs, ys = Ys, saturate = False)
    with pytest.raises(ValueError):
        interp(x) == expected
Beispiel #3
0
def test_interpolate1D_saturate(x, expected):
    interp = functions.Interpolate1D(pairs = zip(Xs, Ys), saturate = True)
    assert interp(x) == expected
Beispiel #4
0
def test_interpolate1D_saturate(x, expected):
    interp = functions.Interpolate1D(xs = Xs, ys = Ys, saturate = True)
    assert interp(x) == expected