def extract_data(condition, mnemonic):
    """Function extracts data from given mnemmonic at a given condition
    Parameters
    ----------
    condition : object
        conditon object that holds one or more subconditions
    mnemonic : AstropyTable
        holds single table with mnemonic data
    Return
    ------
    temp : list  or None
        holds data that applies to given condition
    """
    temp = []
    for element in mnemonic:
        if condition.state(float(element['time'])):
            temp.append(float(element['value']))
    if len(temp) > 0:
        return temp
    else:
        return None
