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
9ef40556
Commit
9ef40556
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug introduced in recent parseargs changes - autodisplay not being
applied to overlays loaded on command line.
parent
b0869287
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/fsleyes/fsleyes_parseargs.py
+3
-2
3 additions, 2 deletions
fsl/fsleyes/fsleyes_parseargs.py
with
3 additions
and
2 deletions
fsl/fsleyes/fsleyes_parseargs.py
+
3
−
2
View file @
9ef40556
...
@@ -1480,11 +1480,12 @@ def applyOverlayArgs(args, overlayList, displayCtx, **kwargs):
...
@@ -1480,11 +1480,12 @@ def applyOverlayArgs(args, overlayList, displayCtx, **kwargs):
# Figure out how many arguments
# Figure out how many arguments
# were passed in for this overlay
# were passed in for this overlay
allArgs
=
[
v
for
k
,
v
in
vars
(
optArgs
).
items
()]
allArgs
=
[
v
for
k
,
v
in
vars
(
optArgs
).
items
()
if
k
!=
'
overlayType
'
]
nArgs
=
len
([
a
for
a
in
allArgs
if
a
is
not
None
])
nArgs
=
len
([
a
for
a
in
allArgs
if
a
is
not
None
])
# If no arguments were passed,
# If no arguments were passed,
# apply default display settings
# apply default display settings
if
nArgs
==
0
and
args
.
autoDisplay
:
if
nArgs
==
0
and
args
.
autoDisplay
:
autodisplay
.
autoDisplay
(
overlay
,
overlayList
,
displayCtx
)
autodisplay
.
autoDisplay
(
overlay
,
overlayList
,
displayCtx
)
continue
continue
...
...
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