Commit 1c006fda authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

remove references of wait from tests, run.py and documentation

parent 38789e94
...@@ -9,7 +9,7 @@ line tool. It is assumed that the computing cluster is managed by SGE. ...@@ -9,7 +9,7 @@ line tool. It is assumed that the computing cluster is managed by SGE.
Example usage, building a short pipeline:: 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 # submits bet to veryshort queue unless <mask_filename> already exists
bet_job = submit('bet <input_filename> -m', bet_job = submit('bet <input_filename> -m',
...@@ -26,16 +26,12 @@ Example usage, building a short pipeline:: ...@@ -26,16 +26,12 @@ Example usage, building a short pipeline::
wait_for=(bet_job, other_job), wait_for=(bet_job, other_job),
queue='cuda.q') queue='cuda.q')
# waits for the cuda job to finish
wait(cuda_job)
.. autosummary:: .. autosummary::
:nosignatures: :nosignatures:
submit submit
info info
output output
wait
func_to_cmd func_to_cmd
""" """
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
run run
runfsl runfsl
wait
dryrun dryrun
""" """
...@@ -423,8 +422,3 @@ def wslcmd(cmdpath, *args): ...@@ -423,8 +422,3 @@ def wslcmd(cmdpath, *args):
else: else:
# Command was not found in WSL with this path # Command was not found in WSL with this path
return None return None
def wait(job_ids):
"""Proxy for :func:`.fslsub.wait`. """
return fslsub.wait(job_ids)
...@@ -101,7 +101,6 @@ def test_submit(): ...@@ -101,7 +101,6 @@ def test_submit():
os.chmod(cmd, 0o755) os.chmod(cmd, 0o755)
jid = fslsub.submit(cmd) jid = fslsub.submit(cmd)
fslsub.wait(jid)
stdout, stderr = fslsub.output(jid) stdout, stderr = fslsub.output(jid)
assert stdout.strip() == 'standard output' assert stdout.strip() == 'standard output'
...@@ -184,8 +183,6 @@ def test_func_to_cmd(): ...@@ -184,8 +183,6 @@ def test_func_to_cmd():
cmd = fslsub.func_to_cmd(myfunc, (), {}) cmd = fslsub.func_to_cmd(myfunc, (), {})
jid = fslsub.submit(cmd) jid = fslsub.submit(cmd)
fslsub.wait(jid)
stdout, stderr = fslsub.output(jid) stdout, stderr = fslsub.output(jid)
assert stdout.strip() == 'standard output' assert stdout.strip() == 'standard output'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment