From: Zbigniew R. <zre...@ce...> - 2016-07-12 10:11:20
|
From: zreszela <zre...@ce...> scan is not a scheme, but a legacy implementation used by Sardana in order to plot scan data during the scan. Treat is as a case insensitive scheme, as Tango is. --- lib/taurus/qt/qtgui/plot/taurusplot.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/taurus/qt/qtgui/plot/taurusplot.py b/lib/taurus/qt/qtgui/plot/taurusplot.py index c060841..5c4795c 100644 --- a/lib/taurus/qt/qtgui/plot/taurusplot.py +++ b/lib/taurus/qt/qtgui/plot/taurusplot.py @@ -3216,10 +3216,13 @@ class TaurusPlot(Qwt5.QwtPlot, TaurusBaseWidget): models = [] for m in modelNames: scheme = getSchemeFromName(m) - if taurus.Factory(scheme).caseSensitive: - models.append(str(m)) - else: + # scan is not a scheme, but a "legacy" way in which Sardana plots + # the scan data comming from the door; as Tango scheme it is + # case insensitive + if scheme == "scan" or not taurus.Factory(scheme).caseSensitive: models.append(str(m).lower()) + else: + models.append(str(m)) return models @Qt.pyqtSlot('QStringList') -- 1.8.4.5 |