Ejemplo n.º 1
0
def test_resampler_resample(period, expected):
    resampler = Resampler(period=period)
    resampler.fit(signal_array)
    assert_almost_equal(resampler.resample(signal_array), expected)
Ejemplo n.º 2
0
def test_resampler_errors():
    resampler = Resampler(period='blah')
    with pytest.raises(TypeError):
        resampler.fit(signal_array)