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
df86c2d6
Commit
df86c2d6
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix - LabelGrid was not being notified of new lut labels when loaded
from a label file. Other minor typo fixes.
parent
072f20a5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fsl/data/model.py
+1
-1
1 addition, 1 deletion
fsl/data/model.py
fsl/fsleyes/autodisplay.py
+1
-1
1 addition, 1 deletion
fsl/fsleyes/autodisplay.py
fsl/fsleyes/controls/melodicclassificationpanel.py
+6
-1
6 additions, 1 deletion
fsl/fsleyes/controls/melodicclassificationpanel.py
with
8 additions
and
3 deletions
fsl/data/model.py
+
1
−
1
View file @
df86c2d6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
#
"""
This module provid
s
e the :class:`Model` class, which represents a 3D model.
"""
This module provide
s
the :class:`Model` class, which represents a 3D model.
.. note:: I/O support is very limited - currently, the only supported file
.. note:: I/O support is very limited - currently, the only supported file
type is the VTK legacy file format, containing the ``POLYDATA``
type is the VTK legacy file format, containing the ``POLYDATA``
...
...
This diff is collapsed.
Click to expand it.
fsl/fsleyes/autodisplay.py
+
1
−
1
View file @
df86c2d6
...
@@ -200,7 +200,7 @@ def _MelodicImageDisplay(overlay, overlayList, displayCtx):
...
@@ -200,7 +200,7 @@ def _MelodicImageDisplay(overlay, overlayList, displayCtx):
overlayList
.
insert
(
idx
,
meanImg
)
overlayList
.
insert
(
idx
,
meanImg
)
def
_ModelDisplay
(
overlay
,
display
,
overlayList
,
displayCtx
):
def
_ModelDisplay
(
overlay
,
overlayList
,
displayCtx
):
"""
Automatically configure display settings for the given :class:`.Model`
"""
Automatically configure display settings for the given :class:`.Model`
overlay.
overlay.
"""
"""
...
...
This diff is collapsed.
Click to expand it.
fsl/fsleyes/controls/melodicclassificationpanel.py
+
6
−
1
View file @
df86c2d6
...
@@ -180,7 +180,7 @@ class MelodicClassificationPanel(fslpanel.FSLEyesPanel):
...
@@ -180,7 +180,7 @@ class MelodicClassificationPanel(fslpanel.FSLEyesPanel):
overlay.
overlay.
If the number of labels in the file is less than the number of
If the number of labels in the file is less than the number of
melodic_IC components, the
w
remaining components are labelled
melodic_IC components, the remaining components are labelled
as unknown. If the number of labels in the file is greater than
as unknown. If the number of labels in the file is greater than
the number of melodic_IC components, an error is shown, and
the number of melodic_IC components, an error is shown, and
nothing is done.
nothing is done.
...
@@ -246,6 +246,11 @@ class MelodicClassificationPanel(fslpanel.FSLEyesPanel):
...
@@ -246,6 +246,11 @@ class MelodicClassificationPanel(fslpanel.FSLEyesPanel):
melclass
.
enableNotification
(
'
labels
'
)
melclass
.
enableNotification
(
'
labels
'
)
lut
.
enableNotification
(
'
labels
'
)
lut
.
enableNotification
(
'
labels
'
)
# Make sure that lut listeners
# are notified, in case any
# new labels were added.
lut
.
notify
(
'
labels
'
)
# If we have just loaded a MelodicImage,
# If we have just loaded a MelodicImage,
# make sure it is selected. If we loaded
# make sure it is selected. If we loaded
# labels for an existing MelodicImage,
# labels for an existing MelodicImage,
...
...
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