Commit b017bf00c56c851479cef58821e63ddb74091559
1 parent
6e3bbfcd
Exists in
master
and in
6 other branches
ENH: Changed name of strings (color to colour)
Showing
2 changed files
with
13 additions
and
13 deletions
Show diff stats
invesalius/data/slice_.py
... | ... | @@ -55,9 +55,9 @@ class Slice(object): |
55 | 55 | |
56 | 56 | ps.Publisher().subscribe(self.UpdateWindowLevelBackground,\ |
57 | 57 | 'Bright and contrast adjustment image') |
58 | - | |
59 | - ps.Publisher().subscribe(self.UpdateColorTableBackground,\ | |
60 | - 'Change color table from background image') | |
58 | + | |
59 | + ps.Publisher().subscribe(self.UpdateColourTableBackground,\ | |
60 | + 'Change colour table from background image') | |
61 | 61 | |
62 | 62 | def __set_current_mask_threshold_limits(self, pubsub_evt): |
63 | 63 | thresh_min = pubsub_evt.data[0] |
... | ... | @@ -404,30 +404,30 @@ class Slice(object): |
404 | 404 | |
405 | 405 | if not((window == window_level.GetWindow()) and\ |
406 | 406 | (level == window_level.GetLevel())): |
407 | - | |
407 | + | |
408 | 408 | window_level.SetWindow(window) |
409 | 409 | window_level.SetLevel(level) |
410 | 410 | window_level.SetOutputFormatToLuminance() |
411 | 411 | window_level.Update() |
412 | - | |
412 | + | |
413 | 413 | thresh_min, thresh_max = window_level.GetOutput().GetScalarRange() |
414 | 414 | self.lut_bg.SetTableRange(thresh_min, thresh_max) |
415 | 415 | self.img_colours_bg.SetInput(window_level.GetOutput()) |
416 | - | |
417 | - def UpdateColorTableBackground(self, pubsub_evt): | |
416 | + | |
417 | + def UpdateColourTableBackground(self, pubsub_evt): | |
418 | 418 | values = pubsub_evt.data |
419 | - | |
419 | + | |
420 | 420 | if (values[0]): |
421 | 421 | self.lut_bg.SetNumberOfColors(values[0]) |
422 | - | |
422 | + | |
423 | 423 | self.lut_bg.SetSaturationRange(values[1]) |
424 | 424 | self.lut_bg.SetHueRange(values[2]) |
425 | 425 | self.lut_bg.SetValueRange(values[3]) |
426 | - | |
426 | + | |
427 | 427 | thresh_min, thresh_max = self.window_level.GetOutput().GetScalarRange() |
428 | 428 | self.lut_bg.SetTableRange(thresh_min, thresh_max) |
429 | - | |
430 | - | |
429 | + | |
430 | + | |
431 | 431 | def CreateMask(self, imagedata=None, name=None): |
432 | 432 | |
433 | 433 | future_mask = Mask() | ... | ... |
invesalius/gui/widgets/slice_menu.py
... | ... | @@ -99,7 +99,7 @@ class SliceMenu(wx.Menu): |
99 | 99 | |
100 | 100 | elif(key in const.SLICE_COLOR_TABLE.keys()): |
101 | 101 | values = const.SLICE_COLOR_TABLE[key] |
102 | - ps.Publisher().sendMessage('Change color table from background image', values) | |
102 | + ps.Publisher().sendMessage('Change colour table from background image', values) | |
103 | 103 | ps.Publisher().sendMessage('Update slice viewer') |
104 | 104 | |
105 | 105 | elif(key in const.IMAGE_TILING.keys()): | ... | ... |