Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Michiel Cottaar
fslpy
Commits
bd3e63b5
Commit
bd3e63b5
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TimeSeriesPanel creates FEATTimeSeries instances for FEATImage instances.
parent
e38ed7a8
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/views/timeseriespanel.py
+23
-2
23 additions, 2 deletions
fsl/fslview/views/timeseriespanel.py
with
23 additions
and
2 deletions
fsl/fslview/views/timeseriespanel.py
+
23
−
2
View file @
bd3e63b5
...
...
@@ -19,6 +19,7 @@ import numpy as np
import
props
import
plotpanel
import
fsl.data.featimage
as
fslfeatimage
import
fsl.data.image
as
fslimage
import
fsl.fslview.displaycontext
as
fsldisplay
import
fsl.fslview.controls
as
fslcontrols
...
...
@@ -50,6 +51,21 @@ class TimeSeries(plotpanel.DataSeries):
return
xdata
,
ydata
class
FEATTimeSeries
(
TimeSeries
):
"""
A :Class:`TimeSeries` class for use with :class:`FEATImage` instances,
containing some extra FEAT specific options.
"""
plotFullModelFit
=
props
.
Boolean
(
default
=
False
)
# plotResiduals = props.Boolean(default=False)
# plotParameterEstimates = props.List(props.Boolean(default=False))
# plotCopes = props.List(props.Boolean(default=False))
# Reduced against what? It has to
# be w.r.t. a specific PE/COPE.
# plotReducedData = props.Boolean(default=False)
class
TimeSeriesPanel
(
plotpanel
.
PlotPanel
):
"""
A panel with a :mod:`matplotlib` canvas embedded within.
...
...
@@ -148,9 +164,14 @@ class TimeSeriesPanel(plotpanel.PlotPanel):
vox
[
0
]
>=
overlay
.
shape
[
0
]
or
\
vox
[
1
]
>=
overlay
.
shape
[
1
]
or
\
vox
[
2
]
>=
overlay
.
shape
[
2
]:
return
return
ts
=
TimeSeries
(
self
,
overlay
,
vox
)
if
isinstance
(
overlay
,
fslfeatimage
.
FEATImage
):
ts
=
FEATTimeSeries
(
self
,
overlay
,
vox
)
else
:
ts
=
TimeSeries
(
self
,
overlay
,
vox
)
ts
.
colour
=
[
0
,
0
,
0
]
ts
.
alpha
=
1
ts
.
lineWidth
=
2
...
...
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