Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.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.bio.base
Commits
e45cd27c
Commit
e45cd27c
authored
9 years ago
by
Manuel Günther
Browse files
Options
Downloads
Patches
Plain Diff
Fixed --skip-when-existing option of grid_search.py
parent
29fa6673
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/base/script/grid_search.py
+4
-4
4 additions, 4 deletions
bob/bio/base/script/grid_search.py
with
4 additions
and
4 deletions
bob/bio/base/script/grid_search.py
+
4
−
4
View file @
e45cd27c
...
@@ -319,14 +319,14 @@ def execute_dependent_task(command_line, directories, dependency_level):
...
@@ -319,14 +319,14 @@ def execute_dependent_task(command_line, directories, dependency_level):
# add dependencies
# add dependencies
if
dependencies
:
if
dependencies
:
command_line
+=
[
'
--external-dependencies
'
]
+
[
str
(
d
)
for
d
in
dependencies
]
command_line
+=
[
'
--external-dependencies
'
]
+
[
str
(
d
)
for
d
in
sorted
(
list
(
set
(
dependencies
)))
]
# execute the command
# execute the command
new_job_ids
=
{}
new_job_ids
=
{}
try
:
try
:
verif_args
=
verify
.
parse_arguments
(
command_line
)
verif_args
=
verify
.
parse_arguments
(
command_line
)
result_dir
=
os
.
path
.
join
(
verif_args
.
result_directory
,
verif_args
.
sub_directory
)
result_dir
s
=
[
os
.
path
.
join
(
verif_args
.
result_directory
,
verif_args
.
database
.
protocol
,
verif_args
.
score_directories
[
i
])
for
i
in
((
0
,
1
)
if
verif_args
.
zt_norm
else
(
0
,))]
if
not
args
.
skip_when_existent
or
not
os
.
path
.
exists
(
result_dir
):
if
not
args
.
skip_when_existent
or
not
all
(
os
.
path
.
exists
(
result_dir
)
for
result_dir
in
result_dirs
)
:
# get the command line parameter for the result directory
# get the command line parameter for the result directory
if
args
.
dry_run
:
if
args
.
dry_run
:
if
args
.
verbose
:
if
args
.
verbose
:
...
@@ -336,7 +336,7 @@ def execute_dependent_task(command_line, directories, dependency_level):
...
@@ -336,7 +336,7 @@ def execute_dependent_task(command_line, directories, dependency_level):
global
fake_job_id
global
fake_job_id
new_job_ids
=
verify
.
verify
(
verif_args
,
command_line
,
external_fake_job_id
=
fake_job_id
)
new_job_ids
=
verify
.
verify
(
verif_args
,
command_line
,
external_fake_job_id
=
fake_job_id
)
else
:
else
:
logger
.
info
(
"
Skipping execution of %s since result director
y
'
%s
'
already exists
"
,
tools
.
command_line
(
command_line
),
result_dir
)
logger
.
info
(
"
Skipping execution of %s since result director
ies
'
%s
'
already exists
"
,
tools
.
command_line
(
command_line
),
result_dir
s
)
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
error
(
"
The execution of job was rejected!
\n
%s
\n
Reason:
\n
%s
"
,
tools
.
command_line
(
command_line
),
e
)
logger
.
error
(
"
The execution of job was rejected!
\n
%s
\n
Reason:
\n
%s
"
,
tools
.
command_line
(
command_line
),
e
)
...
...
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