def recover_new_experiments(data, command_line, starting_folder):
    """
    Given the input, extract the additional likelihoods

    """
    # Initialize the companion data structure, on a modified command line
    modified_command_line = copy(command_line)
    modified_command_line.folder = starting_folder
    modified_command_line.param = os.path.join(starting_folder, 'log.param')

    # Go through the file, and stop when you find the good line. The previous
    # way of doing, to simply initialise another data instance fails when using
    # Planck. Indeed, clik likelihoods can not be initialised twice.
    print 'Reading the starting folder'
    print '---------------------------'
    with open(modified_command_line.param, 'r') as init:
        for line in init:
            if line.find('data.experiments') != -1:
                _, experiments = line.split('=')
                experiments = experiments.strip()
    print 'The likelihood will be computed only for:'
    new_experiments = [
        elem for elem in data.experiments if experiments not in elem]
    print ' ->',
    print ', '.join(new_experiments)

    return new_experiments
dataset/ETHPy150Open baudren/montepython_public/montepython/importance_sampling.py/recover_new_experiments/swapped operands of `not in`