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
114bf373
Commit
114bf373
authored
4 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
DOC: fixes
parent
4b2fae25
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
fsl/data/gifti.py
+1
-0
1 addition, 0 deletions
fsl/data/gifti.py
fsl/data/image.py
+1
-1
1 addition, 1 deletion
fsl/data/image.py
fsl/utils/fslsub.py
+3
-3
3 additions, 3 deletions
fsl/utils/fslsub.py
fsl/wrappers/wrapperutils.py
+1
-0
1 addition, 0 deletions
fsl/wrappers/wrapperutils.py
with
6 additions
and
4 deletions
fsl/data/gifti.py
+
1
−
0
View file @
114bf373
...
...
@@ -314,6 +314,7 @@ def relatedFiles(fname, ftypes=None):
This function assumes that the GIFTI files are named according to a
standard convention - the following conventions are supported:
- HCP-style, i.e.: ``<subject>.<hemi>.<type>.<space>.<ftype>.gii``
- BIDS-style, i.e.:
``<source_prefix>_hemi-<hemi>[_space-<space>]*_<suffix>.<ftype>.gii``
...
...
This diff is collapsed.
Click to expand it.
fsl/data/image.py
+
1
−
1
View file @
114bf373
...
...
@@ -1005,7 +1005,7 @@ class Image(Nifti):
:arg image: A string containing the name of an image file to load,
or a :mod:`numpy` array, or a :mod:`nibabel` image
object, or an ``Image``object.
object, or an ``Image``
object.
:arg name: A name for the image.
...
...
This diff is collapsed.
Click to expand it.
fsl/utils/fslsub.py
+
3
−
3
View file @
114bf373
...
...
@@ -63,7 +63,7 @@ class SubmitParams(object):
Any command line script can be submitted by the parameters by calling the `SubmitParams` object:
.. codeblock:: python
.. code
-
block:: python
submit = SubmitParams(minutes=1, logdir=
'
log
'
, wait_for=[
'
108023
'
,
'
108019
'
])
submit(
'
echo finished
'
)
...
...
@@ -71,14 +71,14 @@ class SubmitParams(object):
This will run
"
echo finished
"
with a maximum runtime of 1 minute after the jobs with IDs 108023 and 108019 are finished.
It is the equivalent of
.. codeblock:: bash
.. code
-
block:: bash
fsl_sub -T 1 -l log -j 108023,108019
"
echo finished
"
For python scripts that submit themselves to the cluster, it might be useful to give the user some control
over at least some of the submission parameters. This can be done using:
.. codeblock:: python
.. code
-
block:: python
import argparse
parser = argparse.ArgumentParser(
"
my script doing awesome stuff
"
)
...
...
This diff is collapsed.
Click to expand it.
fsl/wrappers/wrapperutils.py
+
1
−
0
View file @
114bf373
...
...
@@ -606,6 +606,7 @@ class FileOrThing(object):
:arg load: Function which is called to load items for arguments
that were set to :data:`LOAD`. Must accept the
following arguments:
- the name of the argument
- path to the file to be loaded
...
...
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