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
e7c48926
Commit
e7c48926
authored
4 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
BF: Minor fixes
parent
06a86eb7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/utils/fslsub.py
+3
-3
3 additions, 3 deletions
fsl/utils/fslsub.py
with
3 additions
and
3 deletions
fsl/utils/fslsub.py
+
3
−
3
View file @
e7c48926
...
@@ -156,10 +156,10 @@ class SubmitParams(object):
...
@@ -156,10 +156,10 @@ class SubmitParams(object):
(set to None to include everything)
(set to None to include everything)
:return: the group the arguments got added to
:return: the group the arguments got added to
"""
"""
from
fsl.utils.run
import
runfsl
from
fsl.utils.run
import
runfsl
,
FSLNotPresent
try
:
try
:
fsl_sub_run
,
_
=
runfsl
(
'
fsl_sub
'
,
exitcode
=
True
)
fsl_sub_run
,
_
=
runfsl
(
'
fsl_sub
'
,
exitcode
=
True
)
except
FileNotFoundError
:
except
(
FileNotFoundError
,
FSLNotPresent
)
:
warnings
.
warn
(
'
fsl_sub was not found
'
)
warnings
.
warn
(
'
fsl_sub was not found
'
)
return
return
doc_lines
=
fsl_sub_run
.
splitlines
()
doc_lines
=
fsl_sub_run
.
splitlines
()
...
@@ -183,7 +183,7 @@ class SubmitParams(object):
...
@@ -183,7 +183,7 @@ class SubmitParams(object):
break
break
elif
line
.
strip
().
startswith
(
flag
):
elif
line
.
strip
().
startswith
(
flag
):
explanation
=
[
line
[
nspaces
:].
strip
()]
explanation
=
[
line
[
nspaces
:].
strip
()]
if
len
(
explanation
)
==
0
:
if
(
explanation
is
None
)
or
(
len
(
explanation
)
==
0
)
:
return
'
documentation not found
'
return
'
documentation not found
'
return
'
'
.
join
(
explanation
)
return
'
'
.
join
(
explanation
)
...
...
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