Skip to content
Snippets Groups Projects
Commit 8ca74ee8 authored by Manuel Günther's avatar Manuel Günther
Browse files

raising errors instead of emitting warnings in case of unsuccessful processing

parent 147e04e7
No related branches found
No related tags found
1 merge request!63raising errors instead of emitting warnings in case of unsuccessful processing
Pipeline #
......@@ -136,8 +136,8 @@ def project(algorithm, extractor, groups = None, indices = None, allow_missing_f
logger.debug("... Projection for extracted file %s failed; skipping", feature_file)
continue
else:
logger.error("Projection of file '%s' was not successful", feature_file)
continue
raise RuntimeError("Projection of file '%s' was not successful" % feature_file)
# write it
algorithm.write_feature(projected, projected_file)
......@@ -284,8 +284,7 @@ def enroll(algorithm, extractor, compute_zt_norm, indices = None, groups = ['dev
logger.debug("... Enrollment for model %s failed; skipping", model_id)
continue
else:
logger.error("Enrollemnt of model '%s' was not successful", model_id)
continue
raise RuntimeError("Enrollemnt of model '%s' was not successful" % model_id)
# save the model
algorithm.write_model(model, model_file)
......@@ -332,8 +331,7 @@ def enroll(algorithm, extractor, compute_zt_norm, indices = None, groups = ['dev
logger.debug("... Enrollment for T-model %s failed; skipping", t_model_id)
continue
else:
logger.error("Enrollemnt of T-model '%s' was not successful", t_model_id)
continue
raise RuntimeError("Enrollemnt of T-model '%s' was not successful", t_model_id)
# save model
algorithm.write_model(t_model, t_model_file)
......
......@@ -125,8 +125,8 @@ def extract(extractor, preprocessor, groups=None, indices = None, allow_missing_
logger.debug("... Feature extraction for data file %s failed; skipping", data_file)
continue
else:
logger.error("Feature extraction of file '%s' was not successful", data_file)
continue
raise RuntimeError("Feature extraction of file '%s' was not successful" % data_file)
# write feature
extractor.write_feature(feature, feature_file)
......
......@@ -80,9 +80,9 @@ def preprocess(preprocessor, groups = None, indices = None, allow_missing_files
if preprocessed_data is None:
if allow_missing_files:
logger.debug("... Processing original data file '%s' was not successful", file_name)
continue
else:
logger.error("Preprocessing of file '%s' was not successful", file_name)
continue
raise RuntimeError("Preprocessing of file '%s' was not successful" % file_name)
# write the data
preprocessor.write_data(preprocessed_data, preprocessed_data_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment