Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.base
Commits
e318ac17
Commit
e318ac17
authored
Apr 12, 2017
by
Amir Mohammadi
Committed by
Amir MOHAMMADI
Feb 22, 2018
Browse files
Allow for missing files in the projection step
parent
1722f5c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/tools/algorithm.py
View file @
e318ac17
...
...
@@ -114,6 +114,15 @@ def project(algorithm, extractor, groups=None, indices=None, allow_missing_files
for
i
in
index_range
:
feature_file
=
str
(
feature_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
allow_missing_files
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment