def generate_meas_dict(globals_dict, meas_list):
    """
    Generates meas_dict from more compact meas_list.
    When calling this function, enter globals() for the globals_dict.
    """
    meas_dict = dict()
    meas_list = meas_list.replace(' ','').split(',')
    for devvar in meas_list:
        split = devvar.split('.')
        devstring = split[0]
        var = split[1]
        dev = globals_dict[devstring]
        meas_dict[devvar] = {'dev': dev,
                             'var': var}
    return meas_dict