def _get_bout(source, bout_list, pos=0) -> list:
    """return time series data in one bout

    Parameters
    ----------
    source : 1D numpy array
        time series data
    bout_list : list of bout information
        outcome of detect bout
    pos : int, optional
        index position in bout list, by default 0
    window : int, optional
        window size in bout detection, by default 10

    Returns
    -------
    1D numpy array
        time series data in bout
    """

    if (pos <0) or (pos > len(bout_list)-1):
        print('out of range')
        exit(0)

    start_idx = int(bout_list[pos][0])
    end_idx = int(bout_list[pos][1])

    return source[start_idx:end_idx]