def convert_meas(direction, Rec):
    """
    converts measurments tables from magic 2 to 3 (direction=magic3)
    or from model 3 to 2.5 (direction=magic2) [not available]
    """
    if direction == 'magic3':
        columns = meas_magic2_2_magic3_map
        MeasRec = {}
        for key in columns:
            if key in list(Rec.keys()):
                # transfer info and change column name to data model 3.0
                MeasRec[columns[key]] = Rec[key]
        return MeasRec
    else:  # haven't added this way yet
        pass