From e6983a19822e14ff2c4b16c864717c7c0bd1b8e1 Mon Sep 17 00:00:00 2001 From: Tiago Freitas Pereira <tiagofrepereira@gmail.com> Date: Tue, 24 Oct 2017 09:49:24 +0200 Subject: [PATCH] Removed allow-missing files in the raw data reading --- bob/bio/base/tools/preprocessor.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bob/bio/base/tools/preprocessor.py b/bob/bio/base/tools/preprocessor.py index 92f8c387..1f7374cf 100644 --- a/bob/bio/base/tools/preprocessor.py +++ b/bob/bio/base/tools/preprocessor.py @@ -69,14 +69,6 @@ def preprocess(preprocessor, groups = None, indices = None, allow_missing_files preprocessor.min_preprocessed_file_size): logger.debug("... Processing original data file '%s'", file_name) - # Maybe we have missing file in the databse - if not os.path.exists(file_name): - if allow_missing_files: - logger.debug("... Original data file is missing '%s' and will be skipped", file_name) - continue - else: - raise RuntimeError("Original data file is missing '%s' " % file_name) - data = preprocessor.read_original_data(file_object, original_directory, original_extension) # create output directory before reading the data file (is sometimes required, when relative directories are specified, especially, including a .. somewhere) bob.io.base.create_directories_safe(os.path.dirname(preprocessed_data_file)) -- GitLab