def getindexlist(inputlist,acceptedvaluelist):
    """returns a list of index values that match accepted values
acceptedvaluelist should be entered as a list.
[1,-1] is suggested for breathing analysis
"""
    indexlist=[i for i in
                    range(len(inputlist))
                    if inputlist[i] in acceptedvaluelist]
    return indexlist