import numpy as np
from .data_analysis import moving_average


def test_moving_average():
    avg = moving_average(np.ones(10), 4)
    assert np.any(np.isnan(avg))
    assert np.allclose(avg[3], 1.0)
    return

19f7bf69c346cc5a29aa6e38b5441b129bb35148
<mask token>

<mask token>


def test_moving_average():
    avg = moving_average(np.ones(10), 4)
    assert np.any(np.isnan(avg))
    assert np.allclose(avg[3], 1.0)
    return

import numpy as np
from .data_analysis import moving_average


def test_moving_average():
    avg = moving_average(np.ones(10), 4)
    assert np.any(np.isnan(avg))
    assert np.allclose(avg[3], 1.0)
    return
