Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
FSL
fslpy
Commits
1c006fda
Commit
1c006fda
authored
4 years ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
remove references of wait from tests, run.py and documentation
parent
38789e94
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fsl/utils/fslsub.py
+1
-5
1 addition, 5 deletions
fsl/utils/fslsub.py
fsl/utils/run.py
+0
-6
0 additions, 6 deletions
fsl/utils/run.py
tests/test_fslsub.py
+0
-3
0 additions, 3 deletions
tests/test_fslsub.py
with
1 addition
and
14 deletions
fsl/utils/fslsub.py
+
1
−
5
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
"""
...
...
This diff is collapsed.
Click to expand it.
fsl/utils/run.py
+
0
−
6
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
)
This diff is collapsed.
Click to expand it.
tests/test_fslsub.py
+
0
−
3
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
'
...
...
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