Skip to content

Commit

Permalink
Allow to disable global timer/monitor channel
Browse files Browse the repository at this point in the history
ExpConf gui does not allow to disable a channel if it was designed as global timer or monitor.

Fix sardana-org#1700
  • Loading branch information
cmft committed Nov 2, 2021
1 parent f330e52 commit 4ff0d7e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sardana/taurus/qt/qtgui/extra_sardana/expdescription.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,13 @@ def writeExperimentConfiguration(self, ask=True):
if self.ui.channelEditor.getQModel().isDataChanged():
self._dirtyMntGrps.add(self._localConfig['ActiveMntGrp'])

mgconfs = conf.get('MntGrpConfigs', {})

for mgname in self._dirtyMntGrps:
mgconf = mgconfs[mgname]
mgconf.pop('timer', None)
mgconf.pop('monitor', None)

door = self.getModelObj()
try:
door.setExperimentConfiguration(conf, mnt_grps=self._dirtyMntGrps)
Expand Down

0 comments on commit 4ff0d7e

Please sign in to comment.