Skip to content
Snippets Groups Projects
Commit df86c2d6 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

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
......@@ -4,7 +4,7 @@
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module providse the :class:`Model` class, which represents a 3D model.
"""This module provides the :class:`Model` class, which represents a 3D model.
.. note:: I/O support is very limited - currently, the only supported file
type is the VTK legacy file format, containing the ``POLYDATA``
......
......@@ -200,7 +200,7 @@ def _MelodicImageDisplay(overlay, overlayList, displayCtx):
overlayList.insert(idx, meanImg)
def _ModelDisplay(overlay, display, overlayList, displayCtx):
def _ModelDisplay(overlay, overlayList, displayCtx):
"""Automatically configure display settings for the given :class:`.Model`
overlay.
"""
......
......@@ -180,7 +180,7 @@ class MelodicClassificationPanel(fslpanel.FSLEyesPanel):
overlay.
If the number of labels in the file is less than the number of
melodic_IC components, thew 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
the number of melodic_IC components, an error is shown, and
nothing is done.
......@@ -246,6 +246,11 @@ class MelodicClassificationPanel(fslpanel.FSLEyesPanel):
melclass.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,
# make sure it is selected. If we loaded
# labels for an existing MelodicImage,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment