Apply a uniform moving average filter to a signal

    Parameters
    ----------
    sig : numpy array
        The signal to smooth.
    window_size : int
        The width of the moving average filter.

def smooth(sig, window_size):
    """
    Apply a uniform moving average filter to a signal

    Parameters
    ----------
    sig : numpy array
        The signal to smooth.
    window_size : int
        The width of the moving average filter.

    """
    box = np.ones(window_size)/window_size
    return np.convolve(sig, box, mode='same')