Skip to content

Commit

Permalink
PosAng.FIX: do not apply rules to TB
Browse files Browse the repository at this point in the history
  • Loading branch information
anacso17 committed Feb 26, 2024
1 parent 1e3e12a commit 14863f0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pyqt-apps/siriushla/as_ap_posang/HLPosAng.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,17 @@ def _setupUi(self):
self.lb_rule_warning = CALabel(self)
self.lb_rule_warning.setText(
"WARNING:Disable injection standby mode to change PosAng.")
self.lb_rule_warning.rules = self.injctrl_vis_rules
if self._tl != 'TB':
self.lb_rule_warning.rules = self.injctrl_vis_rules
self.lb_rule_warning.setStyleSheet("color: yellow; font-weight: bold;")

# update reference button
self.pb_updateref = PyDMPushButton(
self, 'Update Reference', pressValue=1,
init_channel=self.posang_prefix.substitute(
propty='SetNewRefKick-Cmd'))
self.pb_updateref.rules = self.injctrl_enbl_rules
if self._tl != 'TB':
self.pb_updateref.rules = self.injctrl_enbl_rules
self.pb_updateref.setStyleSheet(
'min-height: 2.4em; max-height: 2.4em;')
self.led_needrefupdt = SiriusLedAlert(
Expand Down Expand Up @@ -198,7 +200,8 @@ def _setupDeltaControlLayout(self, axis=''):
propty='DeltaPos'+axis.upper()+'-SP'))
sb_deltapos.step_exponent = -2
sb_deltapos.update_step_size()
sb_deltapos.rules = self.injctrl_enbl_rules
if self._tl != 'TB':
sb_deltapos.rules = self.injctrl_enbl_rules
lb_deltapos = SiriusLabel(self, self.posang_prefix.substitute(
propty='DeltaPos'+axis.upper()+'-RB'), keep_unit=True)
lb_deltapos.showUnits = True
Expand All @@ -209,7 +212,8 @@ def _setupDeltaControlLayout(self, axis=''):
propty='DeltaAng'+axis.upper()+'-SP'))
sb_deltaang.step_exponent = -2
sb_deltaang.update_step_size()
sb_deltaang.rules = self.injctrl_enbl_rules
if self._tl != 'TB':
sb_deltaang.rules = self.injctrl_enbl_rules
lb_deltaang = SiriusLabel(self, self.posang_prefix.substitute(
propty='DeltaAng'+axis.upper()+'-RB'), keep_unit=True)
lb_deltaang.showUnits = True
Expand Down

0 comments on commit 14863f0

Please sign in to comment.