def get_fmriprep_outlier_volumes_from_confounds(confounds_df):
    """extract which volume numbers are outliers from the fmriprep confounds df.

    Returns:
        bad_volumes: list

    eg [34, 35, 100, 150]
    """

    # get the motion columns
    motion = confounds_df.filter(regex='motion')

    # find any rows with values above 0
    return_df = motion[(motion > 0).any(1)]

    # return the index (row names) of this df
    return list(return_df.index)