def check_config(self):
cfg_error_msg = (<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>)<EOL>emisscen_error_msg = (<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>)<EOL>nml_to_check = "<STR_LIT>"<EOL>usr_cfg = read_cfg_file(join(self.run_dir, "<STR_LIT>"))<EOL>for k in usr_cfg[nml_to_check]:<EOL><INDENT>if k.startswith("<STR_LIT>"):<EOL><INDENT>first_tuningmodel = k in ["<STR_LIT>", "<STR_LIT>"]<EOL>if first_tuningmodel:<EOL><INDENT>if usr_cfg[nml_to_check][k] != "<STR_LIT>":<EOL><INDENT>raise ValueError(cfg_error_msg)<EOL><DEDENT><DEDENT>elif usr_cfg[nml_to_check][k] not in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>raise ValueError(cfg_error_msg)<EOL><DEDENT><DEDENT>elif k.startswith("<STR_LIT>"):<EOL><INDENT>if usr_cfg[nml_to_check][k] not in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>raise ValueError(emisscen_error_msg)<EOL><DEDENT><DEDENT><DEDENT>
Check that our MAGICC ``.CFG`` files are set to safely work with PYMAGICC

        For further detail about why this is required, please see :ref:`MAGICC flags`.

        Raises
        ------
        ValueError
            If we are not certain that the config written by PYMAGICC will overwrite
            all other config i.e. that there will be no unexpected behaviour. A
            ValueError will also be raised if the user tries to use more than one
            scenario file.