def create_settings_from_yaml_file(self, file_path): settings = Settings.create_from_yaml_file(file_path) return Settings(self.defaults, settings)
def _load_classifier_settings(self): s = self._settings path = classifier_utils.get_settings_file_path(s.clip_type) logging.info('Loading classifier settings from "{}"...'.format(path)) return Settings.create_from_yaml_file(path)
def test_create_from_commented_out_yaml_file(self): settings = Settings.create_from_yaml_file( _COMMENTED_OUT_SETTINGS_FILE_PATH) self._check_empty_settings(settings)
def test_create_from_yaml_file(self): settings = Settings.create_from_yaml_file(_SETTINGS_FILE_PATH) self._check_settings(settings)
def _load_classifier_settings(self): s = self._settings path = classifier_utils.get_settings_file_path(s.clip_type) logging.info('Loading classifier settings from "{}"...'.format(path)) return Settings.create_from_yaml_file(path)