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
Christoph Arthofer
ms_templates
Commits
5b650129
Commit
5b650129
authored
Jun 04, 2021
by
Christoph Arthofer
Browse files
fsl_sub changed
parent
b199340a
Changes
1
Hide whitespace changes
Inline
Side-by-side
run_template_construction.py
View file @
5b650129
...
...
@@ -433,8 +433,7 @@ def applyWarpWrapper(img_path, ref_path, warped_path, warp_path, interp='spline'
# https://git.fmrib.ox.ac.uk/fsl/fsl_sub
def
submitJob
(
command
,
name
,
log_dir
,
queue
,
wait_for
=
None
,
array_task
=
False
,
coprocessor
=
None
,
coprocessor_class
=
None
,
coprocessor_multi
=
"1"
,
threads
=
1
,
export_var
=
None
):
def
submitJob
(
command
,
name
,
log_dir
,
queue
,
wait_for
=
None
,
array_task
=
False
,
coprocessor
=
None
,
coprocessor_class
=
None
,
coprocessor_multi
=
"1"
,
threads
=
1
,
export_var
=
None
):
coprocessor_class_strict
=
True
if
coprocessor_class
is
not
None
else
False
job_id
=
fsl_sub
.
submit
(
command
=
command
,
...
...
@@ -1422,7 +1421,7 @@ if __name__ == "__main__":
# export_var=export_var_str['SINGULARITY_BIND'], debug=False)
job_ids
[
28
]
=
submitJob
(
script_path
,
tag
+
'_'
+
task_name
,
log_dir
,
queue
=
gpuq
,
wait_for
=
list
(
itemgetter
(
*
[
21
,
23
,
24
,
25
,
26
,
27
,
28
,
44
,
45
,
46
,
47
,
48
,
50
])(
job_ids
)),
array_task
=
True
,
coprocessor
=
'cuda'
,
export_var
=
[
export_var_str
[
'SINGULARITY_BIND'
]])
array_task
=
True
,
coprocessor
=
'cuda'
,
coprocessor_class
=
None
,
coprocessor_multi
=
"1"
,
threads
=
1
,
export_var
=
[
export_var_str
[
'SINGULARITY_BIND'
]])
print
(
'submitted: '
+
task_name
)
# Averaging warps
...
...
Write
Preview
Markdown
is supported
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