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
635fa0ee
Commit
635fa0ee
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TimeSeriesListPanel uses display.name instead of overlay.name.
parent
16e87a60
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/fslview/controls/timeserieslistpanel.py
+9
-4
9 additions, 4 deletions
fsl/fslview/controls/timeserieslistpanel.py
with
9 additions
and
4 deletions
fsl/fslview/controls/timeserieslistpanel.py
+
9
−
4
View file @
635fa0ee
...
@@ -103,7 +103,9 @@ class TimeSeriesListPanel(fslpanel.FSLViewPanel):
...
@@ -103,7 +103,9 @@ class TimeSeriesListPanel(fslpanel.FSLViewPanel):
def
__makeLabel
(
self
,
ts
):
def
__makeLabel
(
self
,
ts
):
return
'
{} [{} {} {}]
'
.
format
(
ts
.
overlay
.
name
,
display
=
self
.
_displayCtx
.
getDisplay
(
ts
.
overlay
)
return
'
{} [{} {} {}]
'
.
format
(
display
.
name
,
ts
.
coords
[
0
],
ts
.
coords
[
0
],
ts
.
coords
[
1
],
ts
.
coords
[
1
],
ts
.
coords
[
2
])
ts
.
coords
[
2
])
...
@@ -113,6 +115,9 @@ class TimeSeriesListPanel(fslpanel.FSLViewPanel):
...
@@ -113,6 +115,9 @@ class TimeSeriesListPanel(fslpanel.FSLViewPanel):
import
fsl.fslview.views.timeseriespanel
as
tsp
import
fsl.fslview.views.timeseriespanel
as
tsp
overlay
=
modelTs
.
overlay
display
=
self
.
_displayCtx
.
getDisplay
(
overlay
)
if
isinstance
(
modelTs
,
tsp
.
FEATResidualTimeSeries
):
if
isinstance
(
modelTs
,
tsp
.
FEATResidualTimeSeries
):
return
'
{} ({})
'
.
format
(
return
'
{} ({})
'
.
format
(
parentTs
.
label
,
parentTs
.
label
,
...
@@ -120,9 +125,9 @@ class TimeSeriesListPanel(fslpanel.FSLViewPanel):
...
@@ -120,9 +125,9 @@ class TimeSeriesListPanel(fslpanel.FSLViewPanel):
elif
isinstance
(
modelTs
,
tsp
.
FEATEVTimeSeries
):
elif
isinstance
(
modelTs
,
tsp
.
FEATEVTimeSeries
):
return
'
{} EV{} ({})
'
.
format
(
return
'
{} EV{} ({})
'
.
format
(
modelTs
.
over
lay
.
name
,
disp
lay
.
name
,
modelTs
.
idx
+
1
,
modelTs
.
idx
+
1
,
modelTs
.
overlay
.
evNames
()[
modelTs
.
idx
])
overlay
.
evNames
()[
modelTs
.
idx
])
label
=
'
{} ({})
'
.
format
(
label
=
'
{} ({})
'
.
format
(
parentTs
.
label
,
parentTs
.
label
,
...
@@ -134,7 +139,7 @@ class TimeSeriesListPanel(fslpanel.FSLViewPanel):
...
@@ -134,7 +139,7 @@ class TimeSeriesListPanel(fslpanel.FSLViewPanel):
elif
modelTs
.
fitType
==
'
cope
'
:
elif
modelTs
.
fitType
==
'
cope
'
:
return
label
.
format
(
return
label
.
format
(
modelTs
.
idx
+
1
,
modelTs
.
idx
+
1
,
modelTs
.
overlay
.
contrastNames
()[
modelTs
.
idx
])
overlay
.
contrastNames
()[
modelTs
.
idx
])
elif
modelTs
.
fitType
==
'
pe
'
:
elif
modelTs
.
fitType
==
'
pe
'
:
return
label
.
format
(
modelTs
.
idx
+
1
)
return
label
.
format
(
modelTs
.
idx
+
1
)
...
...
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