Skip to content
Snippets Groups Projects
Commit e318ac17 authored by Amir Mohammadi's avatar Amir Mohammadi Committed by Amir MOHAMMADI
Browse files

Allow for missing files in the projection step

parent 1722f5c1
Branches
Tags
1 merge request!31Improvements
...@@ -114,6 +114,15 @@ def project(algorithm, extractor, groups=None, indices=None, allow_missing_files ...@@ -114,6 +114,15 @@ def project(algorithm, extractor, groups=None, indices=None, allow_missing_files
for i in index_range: for i in index_range:
feature_file = str(feature_files[i]) feature_file = str(feature_files[i])
projected_file = str(projected_files[i]) projected_file = str(projected_files[i])
if not os.path.exists(feature_file):
if allow_missing_files:
logger.debug(
"... Cannot find extracted feature file %s; skipping",
feature_file)
continue
else:
logger.error("Cannot find extracted feature file %s",
feature_file)
if not os.path.exists(feature_file): if not os.path.exists(feature_file):
if allow_missing_files: if allow_missing_files:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment