Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pad.base
Commits
e318ac17
Commit
e318ac17
authored
8 years ago
by
Amir Mohammadi
Committed by
Amir MOHAMMADI
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow for missing files in the projection step
parent
1722f5c1
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!31
Improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/base/tools/algorithm.py
+9
-0
9 additions, 0 deletions
bob/pad/base/tools/algorithm.py
with
9 additions
and
0 deletions
bob/pad/base/tools/algorithm.py
+
9
−
0
View file @
e318ac17
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment