def get_measure(pre, exp, run=1, fraction=0.5, measure='SEG', score_type='validation_',
                path_str = '/home/tibuch/Noise2Seg/experiments/{}_{}_run{}/fraction_{}/{}scores.csv'):
    """
    Load scores of one experiment.
    
    Parameters:
    pre : str
        Prefix of the experiment.
    exp : str
        Experiment name.
    fraction: float
        Used fraction of annotated training data.
    measure : str
        Used evaluation measure (SEG or AP). Default: 'SEG'
    score_type : str
        Score on validation ('validation_') or test ('') data. Default: 'validation_'
    path_str : str
        Path to the experiments, requires placeholders for 'pre', 'exp', 'fraction', 'score_type'. Default: '/home/tibuch/Noise2Seg/experiments/{}_{}_run{}/fraction_{}/{}scores.csv'
        
    Return:
        float: Requested score if available else None.
    """
    with open(path_str.format(pre, exp, run, fraction, score_type)) as f:
        line = f.readline()
        while line:
            line = line.strip().split(',')
            if line[0] == measure:
                return float(line[1])
            line = f.readline()
    return None