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
Evan Edmond
fslpy
Commits
fac47610
Commit
fac47610
authored
Sep 19, 2019
by
Michiel Cottaar
Browse files
BUG: use _prepareArgs to unpack input arguments
parent
09b60b2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/fslsub.py
View file @
fac47610
...
...
@@ -55,7 +55,7 @@ import importlib
log
=
logging
.
getLogger
(
__name__
)
def
submit
(
command
,
def
submit
(
*
command
,
minutes
=
None
,
queue
=
None
,
architecture
=
None
,
...
...
@@ -70,9 +70,12 @@ def submit(command,
flags
=
False
,
multi_threaded
=
None
,
verbose
=
False
):
"""Submits a given command to the cluster
"""
Submits a given command to the cluster
You can pass the command and arguments as a single string, or as a regular or unpacked sequence.
:arg command: sing
le
string with the job command
:arg command: s
tr
ing
or regular/unpacked sequence of
string
s
with the job command
:arg minutes: Estimated job length in minutes, used to auto-set
queue name
:arg queue: Explicitly sets the queue name
...
...
@@ -101,7 +104,7 @@ def submit(command,
:return: string of submitted job id
"""
from
fsl.utils.run
import
runfsl
from
fsl.utils.run
import
runfsl
,
_prepareArgs
base_cmd
=
[
'fsl_sub'
]
...
...
@@ -132,7 +135,7 @@ def submit(command,
base_cmd
.
append
(
'-s'
)
base_cmd
.
extend
(
multi_threaded
)
base_cmd
.
app
end
(
command
)
base_cmd
.
ext
end
(
_prepareArgs
(
command
)
)
return
runfsl
(
*
base_cmd
).
strip
()
...
...
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