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
bc0c7431
"...git@git.fmrib.ox.ac.uk:fsl/pytreat-practicals-2020.git" did not exist on "47156077e4cd951eecc13e954be701aac21e4804"
Commit
bc0c7431
authored
1 year ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
BF: Wrong argument names to fsl_sub. Fix a few documentation quirks
parent
d3dc4bac
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/filetree/__init__.py
+6
-2
6 additions, 2 deletions
fsl/utils/filetree/__init__.py
fsl/utils/run.py
+2
-2
2 additions, 2 deletions
fsl/utils/run.py
fsl/wrappers/__init__.py
+3
-5
3 additions, 5 deletions
fsl/wrappers/__init__.py
with
11 additions
and
9 deletions
fsl/utils/filetree/__init__.py
+
6
−
2
View file @
bc0c7431
"""
Easy format to define input/output files in a python pipeline.
"""
Easy format to define input/output files in a python pipeline.
.. warning::
File-tree is now an independent Python library, and will eventually be
removed from ``fslpy`` - visit the `file-tree` :ref:`API documentation
<https://open.win.ox.ac.uk/pages/fsl/file-tree/>`_ for more details.
The goal is to separate the definition of the input/output filenames from the actual code
by defining a directory tree (i.e., FileTree) in a separate file from the code.
...
...
This diff is collapsed.
Click to expand it.
fsl/utils/run.py
+
2
−
2
View file @
bc0c7431
...
...
@@ -632,8 +632,8 @@ def hold(job_ids, hold_filename=None, timeout=10):
submit
=
{
'
jobhold
'
:
_flatten_job_ids
(
job_ids
),
'
minutes
'
:
1
,
'
job_
name
'
:
'
.hold
'
'
jobtime
'
:
1
,
'
name
'
:
'
.hold
'
}
run
(
f
'
touch
{
hold_filename
}
'
,
submit
=
submit
)
...
...
This diff is collapsed.
Click to expand it.
fsl/wrappers/__init__.py
+
3
−
5
View file @
bc0c7431
...
...
@@ -19,14 +19,12 @@ For example, you can call BET like so::
If you would like a command to be submitted as a cluster job, all wrappers
accept a ``submit`` keyword argument, which may be given a value of ``True``
indicating that the job should be submitted with default settings, or a
dictionary with submission settings::
dictionary with submission settings, which will be passed through to the
``fsl_sub`` command (run ``fsl_sub --help`` for details on all options)::
from fsl.wrappers import fnirt
fnirt(
'
srf
'
,
'
ref
'
,
'
out
'
, submit=True)
fnirt(
'
srf
'
,
'
ref
'
,
'
out
'
, submit={
'
queue
'
:
'
long.q
'
,
'
ram
'
:
'
4GB
'
})
See the :mod:`.fslsub` module for more details.
fnirt(
'
srf
'
,
'
ref
'
,
'
out
'
, submit={
'
queue
'
:
'
long.q
'
,
'
jobram
'
:
'
4
'
})
Most of these wrapper functions strive to provide an interface which is as
...
...
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