def fps(branch):
    """
    extracts function #, process #, and scan # from the idstring of a spectrum branch
    returns function, process, scan as integers
    """
    idstring = branch.getAttribute('id').split()  # pull id string from scan attribute
    return [int(x.split('=')[1]) for x in idstring]