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
Sean Fitzgibbon
fslpy
Commits
1c006fda
Commit
1c006fda
authored
Jun 10, 2020
by
Michiel Cottaar
Browse files
remove references of wait from tests, run.py and documentation
parent
38789e94
Changes
3
Hide whitespace changes
Inline
Side-by-side
fsl/utils/fslsub.py
View file @
1c006fda
...
...
@@ -9,7 +9,7 @@ line tool. It is assumed that the computing cluster is managed by SGE.
Example usage, building a short pipeline::
from fsl.utils.fslsub import submit
, wait
from fsl.utils.fslsub import submit
# submits bet to veryshort queue unless <mask_filename> already exists
bet_job = submit('bet <input_filename> -m',
...
...
@@ -26,16 +26,12 @@ Example usage, building a short pipeline::
wait_for=(bet_job, other_job),
queue='cuda.q')
# waits for the cuda job to finish
wait(cuda_job)
.. autosummary::
:nosignatures:
submit
info
output
wait
func_to_cmd
"""
...
...
fsl/utils/run.py
View file @
1c006fda
...
...
@@ -15,7 +15,6 @@
run
runfsl
wait
dryrun
"""
...
...
@@ -423,8 +422,3 @@ def wslcmd(cmdpath, *args):
else
:
# Command was not found in WSL with this path
return
None
def
wait
(
job_ids
):
"""Proxy for :func:`.fslsub.wait`. """
return
fslsub
.
wait
(
job_ids
)
tests/test_fslsub.py
View file @
1c006fda
...
...
@@ -101,7 +101,6 @@ def test_submit():
os
.
chmod
(
cmd
,
0o755
)
jid
=
fslsub
.
submit
(
cmd
)
fslsub
.
wait
(
jid
)
stdout
,
stderr
=
fslsub
.
output
(
jid
)
assert
stdout
.
strip
()
==
'standard output'
...
...
@@ -184,8 +183,6 @@ def test_func_to_cmd():
cmd
=
fslsub
.
func_to_cmd
(
myfunc
,
(),
{})
jid
=
fslsub
.
submit
(
cmd
)
fslsub
.
wait
(
jid
)
stdout
,
stderr
=
fslsub
.
output
(
jid
)
assert
stdout
.
strip
()
==
'standard output'
...
...
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