def __studies(self, retention_time):
cfg = self.config.get_conf()<EOL>if '<STR_LIT>' not in cfg[self.backend_section] or notcfg[self.backend_section]['<STR_LIT>']:<EOL><INDENT>logger.debug('<STR_LIT>' % self.backend_section)<EOL>return<EOL><DEDENT>studies = [study for study in cfg[self.backend_section]['<STR_LIT>'] if study.strip() != "<STR_LIT>"]<EOL>if not studies:<EOL><INDENT>logger.debug('<STR_LIT>' % self.backend_section)<EOL>return<EOL><DEDENT>logger.debug("<STR_LIT>" % (self.backend_section, studies))<EOL>time.sleep(<NUM_LIT:2>)  <EOL>enrich_backend = self._get_enrich_backend()<EOL>ocean_backend = self._get_ocean_backend(enrich_backend)<EOL>active_studies = []<EOL>all_studies = enrich_backend.studies<EOL>all_studies_names = [study.__name__ for study in enrich_backend.studies]<EOL>logger.debug("<STR_LIT>", self.backend_section, all_studies_names)<EOL>logger.debug("<STR_LIT>", studies)<EOL>cfg_studies_types = [study.split("<STR_LIT::>")[<NUM_LIT:0>] for study in studies]<EOL>if not set(cfg_studies_types).issubset(set(all_studies_names)):<EOL><INDENT>logger.error('<STR_LIT>', self.backend_section, studies)<EOL>raise RuntimeError('<STR_LIT>', self.backend_section, studies)<EOL><DEDENT>for study in enrich_backend.studies:<EOL><INDENT>if study.__name__ in cfg_studies_types:<EOL><INDENT>active_studies.append(study)<EOL><DEDENT><DEDENT>enrich_backend.studies = active_studies<EOL>print("<STR_LIT>" % (self.backend_section,<EOL>[study for study in studies]))<EOL>studies_args = self.__load_studies()<EOL>do_studies(ocean_backend, enrich_backend, studies_args, retention_time=retention_time)<EOL>enrich_backend.studies = all_studies<EOL>
Execute the studies configured for the current backend