From: Zbigniew R. <zre...@ce...> - 2016-08-22 14:40:48
|
From: zreszela <zre...@ce...> ExperimentConfiguration dict contains "MntGrpConfigs" with meas. group names casted to lowercase (CaselessDict) but "ActiveMntGrp" may contain uppercase. Thus cast the latter one to lowercase for proper comparison. --- lib/taurus/qt/qtgui/taurusgui/macrolistener.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/taurus/qt/qtgui/taurusgui/macrolistener.py b/lib/taurus/qt/qtgui/taurusgui/macrolistener.py index 359eedb..9e8e038 100644 --- a/lib/taurus/qt/qtgui/taurusgui/macrolistener.py +++ b/lib/taurus/qt/qtgui/taurusgui/macrolistener.py @@ -119,14 +119,16 @@ class DynamicPlotManager(Qt.QObject, TaurusBaseComponent): QDoor.getExperimentDescription` for more details ''' - if expconf['ActiveMntGrp'] is None: + activeMntGrp = expconf['ActiveMntGrp'] + if activeMntGrp is None: return - if expconf['ActiveMntGrp'] not in expconf['MntGrpConfigs'].keys(): + activeMntGrpLower = activeMntGrp.lower() + if activeMntGrpLower not in expconf['MntGrpConfigs'].keys(): self.warning( "ActiveMntGrp '%s' is not defined" % - expconf['ActiveMntGrp']) + activeMntGrp) return - mgconfig = expconf['MntGrpConfigs'][expconf['ActiveMntGrp']] + mgconfig = expconf['MntGrpConfigs'][activeMntGrpLower] channels = dict(getChannelConfigs(mgconfig, sort=False)) #classify by type of plot: -- 1.8.4.5 |