def _add_overlays(self, config):
if self._comment:<EOL><INDENT>config['<STR_LIT>'] = self._comment<EOL><DEDENT>jco = {}<EOL>config["<STR_LIT>"] = [jco]<EOL>if self._raw_overlay:<EOL><INDENT>jco.update(self._raw_overlay)<EOL><DEDENT>jc = jco.get('<STR_LIT>', {})<EOL>if self.job_name is not None:<EOL><INDENT>jc["<STR_LIT>"] = self.job_name<EOL><DEDENT>if self.job_group is not None:<EOL><INDENT>jc["<STR_LIT>"] = self.job_group<EOL><DEDENT>if self.data_directory is not None:<EOL><INDENT>jc["<STR_LIT>"] = self.data_directory<EOL><DEDENT>if self.preload:<EOL><INDENT>jc['<STR_LIT>'] = True<EOL><DEDENT>if self.tracing is not None:<EOL><INDENT>jc['<STR_LIT>'] = self.tracing<EOL><DEDENT>if self.submission_parameters:<EOL><INDENT>sp = jc.get('<STR_LIT>', [])<EOL>for name in self.submission_parameters:<EOL><INDENT>sp.append({'<STR_LIT:name>': str(name), '<STR_LIT:value>': self.submission_parameters[name]})<EOL><DEDENT>jc['<STR_LIT>'] = sp<EOL><DEDENT>if jc:<EOL><INDENT>jco["<STR_LIT>"] = jc<EOL><DEDENT>if self.target_pe_count is not None and self.target_pe_count >= <NUM_LIT:1>:<EOL><INDENT>deployment = jco.get('<STR_LIT>', {})<EOL>deployment.update({'<STR_LIT>' : '<STR_LIT>', '<STR_LIT>' : self.target_pe_count})<EOL>jco["<STR_LIT>"] = deployment<EOL><DEDENT>return config<EOL>
Add this as a jobConfigOverlays JSON to config.