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

Half-documented, and refactored LookupTablePanel so it is always

usable (previously was only usable when a compatible overlay was
selected). Next commit will have finished documentation.
parent fff53443
No related branches found
No related tags found
No related merge requests found
doc/images/lookuptablepanel.png

46.4 KiB

...@@ -107,10 +107,6 @@ messages = TypeDict({ ...@@ -107,10 +107,6 @@ messages = TypeDict({
'HistogramPanel.calcHist' : 'Calculating histogram for {} ...', 'HistogramPanel.calcHist' : 'Calculating histogram for {} ...',
'LookupTablePanel.notLutOverlay' : 'Choose an overlay which '
'uses a lookup table',
'LookupTablePanel.labelExists' : 'The {} LUT already contains a ' 'LookupTablePanel.labelExists' : 'The {} LUT already contains a '
'label with value {}', 'label with value {}',
......
...@@ -914,6 +914,16 @@ class LookupTable(props.HasProperties): ...@@ -914,6 +914,16 @@ class LookupTable(props.HasProperties):
if lutFile is not None: if lutFile is not None:
self._load(lutFile) self._load(lutFile)
def __str__(self):
"""Returns the name of this ``LookupTable``. """
return self.name
def __repr__(self):
"""Returns the name of this ``LookupTable``. """
return self.name
def __len__(self): def __len__(self):
......
This diff is collapsed.
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