From 9c384a5bf71b9adb76196549f073e8cd4f1086ee Mon Sep 17 00:00:00 2001 From: payno Date: Thu, 16 Nov 2023 16:22:33 +0100 Subject: [PATCH 1/4] Update src/silx/gui/dialog/ColormapDialog.py Co-authored-by: Thomas VINCENT --- src/silx/gui/dialog/ColormapDialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/silx/gui/dialog/ColormapDialog.py b/src/silx/gui/dialog/ColormapDialog.py index bd15604d25..5db53b586c 100644 --- a/src/silx/gui/dialog/ColormapDialog.py +++ b/src/silx/gui/dialog/ColormapDialog.py @@ -1074,7 +1074,7 @@ def __init__(self, parent=None, title="Colormap Dialog"): self._applyColormap() - def getHistoWidget(self): + def getHistogramWidget(self): return self._histoWidget def _invalidateColormap(self): From d359f2ca6db9e9f6e9708a1b62aa361b45923641 Mon Sep 17 00:00:00 2001 From: payno Date: Thu, 16 Nov 2023 16:22:43 +0100 Subject: [PATCH 2/4] Update src/silx/gui/plot/actions/control.py Co-authored-by: Thomas VINCENT --- src/silx/gui/plot/actions/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/silx/gui/plot/actions/control.py b/src/silx/gui/plot/actions/control.py index 4ff7c91248..897c3d1412 100755 --- a/src/silx/gui/plot/actions/control.py +++ b/src/silx/gui/plot/actions/control.py @@ -331,7 +331,7 @@ def __init__(self, plot, parent=None): self.plot.sigActiveImageChanged.connect(self._updateColormap) self.plot.sigActiveScatterChanged.connect(self._updateColormap) - def setColormapDialog(self, colormapDialog): + def setColormapDialog(self, dialog): """Set a specific color dialog instead of using the default dialog.""" assert(colormapDialog is not None) if self._dialog is not None: From fdb44547812fee2bf41d06cea27204892779c9c5 Mon Sep 17 00:00:00 2001 From: payno Date: Thu, 16 Nov 2023 16:22:55 +0100 Subject: [PATCH 3/4] Update src/silx/gui/plot/actions/control.py Co-authored-by: Thomas VINCENT --- src/silx/gui/plot/actions/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/silx/gui/plot/actions/control.py b/src/silx/gui/plot/actions/control.py index 897c3d1412..b48bef0a1f 100755 --- a/src/silx/gui/plot/actions/control.py +++ b/src/silx/gui/plot/actions/control.py @@ -332,7 +332,7 @@ def __init__(self, plot, parent=None): self.plot.sigActiveScatterChanged.connect(self._updateColormap) def setColormapDialog(self, dialog): - """Set a specific color dialog instead of using the default dialog.""" + """Set a specific colormap dialog instead of using the default one.""" assert(colormapDialog is not None) if self._dialog is not None: self._dialog.visibleChanged.disconnect(self._dialogVisibleChanged) From 6a3bd6bce6d74638a2c2c3d3ac0aef7e6b6d7993 Mon Sep 17 00:00:00 2001 From: payno Date: Thu, 16 Nov 2023 16:23:13 +0100 Subject: [PATCH 4/4] Update src/silx/gui/plot/actions/control.py Co-authored-by: Thomas VINCENT --- src/silx/gui/plot/actions/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/silx/gui/plot/actions/control.py b/src/silx/gui/plot/actions/control.py index b48bef0a1f..c774032cca 100755 --- a/src/silx/gui/plot/actions/control.py +++ b/src/silx/gui/plot/actions/control.py @@ -333,7 +333,7 @@ def __init__(self, plot, parent=None): def setColormapDialog(self, dialog): """Set a specific colormap dialog instead of using the default one.""" - assert(colormapDialog is not None) + assert colormapDialog is not None if self._dialog is not None: self._dialog.visibleChanged.disconnect(self._dialogVisibleChanged)