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
43dfb19f
Commit
43dfb19f
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Plain Diff
Merge branch 'oxford'
parents
83b410ae
215aaa77
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fsl/data/featresults.py
+9
-9
9 additions, 9 deletions
fsl/data/featresults.py
fsl/fsleyes/controls/clusterpanel.py
+6
-0
6 additions, 0 deletions
fsl/fsleyes/controls/clusterpanel.py
fsl/fsleyes/gl/__init__.py
+4
-12
4 additions, 12 deletions
fsl/fsleyes/gl/__init__.py
with
19 additions
and
21 deletions
fsl/data/featresults.py
+
9
−
9
View file @
43dfb19f
...
@@ -385,12 +385,12 @@ def loadClusterResults(featdir, settings, contrast):
...
@@ -385,12 +385,12 @@ def loadClusterResults(featdir, settings, contrast):
'
Z-MAX X (vox)
'
:
(
'
zmaxx
'
,
int
),
'
Z-MAX X (vox)
'
:
(
'
zmaxx
'
,
int
),
'
Z-MAX Y (vox)
'
:
(
'
zmaxy
'
,
int
),
'
Z-MAX Y (vox)
'
:
(
'
zmaxy
'
,
int
),
'
Z-MAX Z (vox)
'
:
(
'
zmaxz
'
,
int
),
'
Z-MAX Z (vox)
'
:
(
'
zmaxz
'
,
int
),
'
Z-COG X (vox)
'
:
(
'
zcogx
'
,
floa
t
),
'
Z-COG X (vox)
'
:
(
'
zcogx
'
,
in
t
),
'
Z-COG Y (vox)
'
:
(
'
zcogy
'
,
floa
t
),
'
Z-COG Y (vox)
'
:
(
'
zcogy
'
,
in
t
),
'
Z-COG Z (vox)
'
:
(
'
zcogz
'
,
floa
t
),
'
Z-COG Z (vox)
'
:
(
'
zcogz
'
,
in
t
),
'
Z-MAX X (mm)
'
:
(
'
zmaxx
'
,
in
t
),
'
Z-MAX X (mm)
'
:
(
'
zmaxx
'
,
floa
t
),
'
Z-MAX Y (mm)
'
:
(
'
zmaxy
'
,
in
t
),
'
Z-MAX Y (mm)
'
:
(
'
zmaxy
'
,
floa
t
),
'
Z-MAX Z (mm)
'
:
(
'
zmaxz
'
,
in
t
),
'
Z-MAX Z (mm)
'
:
(
'
zmaxz
'
,
floa
t
),
'
Z-COG X (mm)
'
:
(
'
zcogx
'
,
float
),
'
Z-COG X (mm)
'
:
(
'
zcogx
'
,
float
),
'
Z-COG Y (mm)
'
:
(
'
zcogy
'
,
float
),
'
Z-COG Y (mm)
'
:
(
'
zcogy
'
,
float
),
'
Z-COG Z (mm)
'
:
(
'
zcogz
'
,
float
),
'
Z-COG Z (mm)
'
:
(
'
zcogz
'
,
float
),
...
@@ -398,9 +398,9 @@ def loadClusterResults(featdir, settings, contrast):
...
@@ -398,9 +398,9 @@ def loadClusterResults(featdir, settings, contrast):
'
COPE-MAX X (vox)
'
:
(
'
copemaxx
'
,
int
),
'
COPE-MAX X (vox)
'
:
(
'
copemaxx
'
,
int
),
'
COPE-MAX Y (vox)
'
:
(
'
copemaxy
'
,
int
),
'
COPE-MAX Y (vox)
'
:
(
'
copemaxy
'
,
int
),
'
COPE-MAX Z (vox)
'
:
(
'
copemaxz
'
,
int
),
'
COPE-MAX Z (vox)
'
:
(
'
copemaxz
'
,
int
),
'
COPE-MAX X (mm)
'
:
(
'
copemaxx
'
,
in
t
),
'
COPE-MAX X (mm)
'
:
(
'
copemaxx
'
,
floa
t
),
'
COPE-MAX Y (mm)
'
:
(
'
copemaxy
'
,
in
t
),
'
COPE-MAX Y (mm)
'
:
(
'
copemaxy
'
,
floa
t
),
'
COPE-MAX Z (mm)
'
:
(
'
copemaxz
'
,
in
t
),
'
COPE-MAX Z (mm)
'
:
(
'
copemaxz
'
,
floa
t
),
'
COPE-MEAN
'
:
(
'
copemean
'
,
float
)}
'
COPE-MEAN
'
:
(
'
copemean
'
,
float
)}
# An error will be raised if the
# An error will be raised if the
...
...
This diff is collapsed.
Click to expand it.
fsl/fsleyes/controls/clusterpanel.py
+
6
−
0
View file @
43dfb19f
...
@@ -477,6 +477,12 @@ class ClusterPanel(fslpanel.FSLEyesPanel):
...
@@ -477,6 +477,12 @@ class ClusterPanel(fslpanel.FSLEyesPanel):
featImage
=
self
.
__featImages
[
overlay
]
featImage
=
self
.
__featImages
[
overlay
]
contrast
=
self
.
__statSelect
.
GetSelection
()
contrast
=
self
.
__statSelect
.
GetSelection
()
# No cluster results
if
contrast
<
0
:
self
.
__addZStats
.
Enable
(
False
)
self
.
__addClustMask
.
Enable
(
False
)
return
zstat
=
featImage
.
getZStats
(
contrast
)
zstat
=
featImage
.
getZStats
(
contrast
)
clustMask
=
featImage
.
getClusterMask
(
contrast
)
clustMask
=
featImage
.
getClusterMask
(
contrast
)
...
...
This diff is collapsed.
Click to expand it.
fsl/fsleyes/gl/__init__.py
+
4
−
12
View file @
43dfb19f
...
@@ -354,6 +354,10 @@ def bootstrap(glVersion=None):
...
@@ -354,6 +354,10 @@ def bootstrap(glVersion=None):
import
fsl.fsleyes.displaycontext.display
as
fsldisplay
import
fsl.fsleyes.displaycontext.display
as
fsldisplay
dc
.
VolumeOpts
.
interpolation
.
removeChoice
(
'
spline
'
)
dc
.
VolumeOpts
.
interpolation
.
removeChoice
(
'
spline
'
)
dc
.
RGBVectorOpts
.
interpolation
.
removeChoice
(
'
spline
'
)
dc
.
RGBVectorOpts
.
interpolation
.
removeChoice
(
'
spline
'
)
dc
.
VolumeOpts
.
interpolation
.
updateChoice
(
'
linear
'
,
newAlt
=
[
'
spline
'
])
dc
.
RGBVectorOpts
.
interpolation
.
updateChoice
(
'
linear
'
,
newAlt
=
[
'
spline
'
])
# Tensor overlays are not available in GL14
# Tensor overlays are not available in GL14
dc
.
ALL_OVERLAY_TYPES
.
remove
(
'
tensor
'
)
dc
.
ALL_OVERLAY_TYPES
.
remove
(
'
tensor
'
)
...
@@ -376,20 +380,8 @@ def bootstrap(glVersion=None):
...
@@ -376,20 +380,8 @@ def bootstrap(glVersion=None):
'
lowering default performance settings.
'
)
'
lowering default performance settings.
'
)
import
fsl.fsleyes.displaycontext
as
dc
import
fsl.fsleyes.displaycontext
as
dc
dc
.
SceneOpts
.
performance
.
setConstraint
(
None
,
'
default
'
,
2
)
dc
.
SceneOpts
.
performance
.
setConstraint
(
None
,
'
default
'
,
2
)
# And disable some fancy options - spline
# may have been disabled above, so absorb
# the ValueError if it occurs
# TODO Remove this code duplication
try
:
dc
.
VolumeOpts
.
interpolation
.
removeChoice
(
'
spline
'
)
dc
.
RGBVectorOpts
.
interpolation
.
removeChoice
(
'
spline
'
)
except
ValueError
:
pass
thismod
.
GL_VERSION
=
verstr
thismod
.
GL_VERSION
=
verstr
thismod
.
GL_RENDERER
=
renderer
thismod
.
GL_RENDERER
=
renderer
thismod
.
glvolume_funcs
=
glpkg
.
glvolume_funcs
thismod
.
glvolume_funcs
=
glpkg
.
glvolume_funcs
...
...
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