Beispiel #1
0
 def create_settings_from_yaml_file(self, file_path):
     settings = Settings.create_from_yaml_file(file_path)
     return Settings(self.defaults, settings)
Beispiel #2
0
 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)
Beispiel #3
0
 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)
Beispiel #4
0
 def test_create_from_yaml_file(self):
     settings = Settings.create_from_yaml_file(_SETTINGS_FILE_PATH)
     self._check_settings(settings)
Beispiel #5
0
 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)