Skip to content

Commit

Permalink
orbintlk.FIX: fix EVG RxEnbl value
Browse files Browse the repository at this point in the history
  • Loading branch information
anacso17 committed Apr 22, 2024
1 parent e7be656 commit ac35904
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
26 changes: 14 additions & 12 deletions siriuspy/siriuspy/orbintlk/csdev.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,23 +139,25 @@ def EVG_CONFIGS(cls):
if cls.__EVG_CONFIGS is not None:
return cls.__EVG_CONFIGS

hltg_enbl = [
'SI-Fam:TI-BPM-OrbIntlk',
'SI-Fam:TI-OrbIntlkRedundancy',
]
lltg_enbl = []
for hltg in hltg_enbl:
lltg_enbl.extend(_HLTimeSearch.get_ll_trigger_names(hltg))
lltg_enbl = set(lltg_enbl)

fouts = set()
evgchans = set()
evgrxenbl = list()
for ch in _LLTimeSearch.get_connections_twds_evg():
if ch.dev != 'BPM':
continue
if ch.sec != 'SI':
continue
if ch.dev == 'BPM' and ch.sub.endswith(('SA', 'SB', 'SP')):
continue
fch = _LLTimeSearch.get_fout_channel(ch)
evgrxenbl = set()
for lltg in lltg_enbl:
fch = _LLTimeSearch.get_fout_channel(lltg)
fouts.add(fch.device_name)
evgch = _LLTimeSearch.get_evg_channel(fch)
if evgch in evgchans:
continue
evgchans.add(evgch)
evgrxenbl.append(int(evgch.propty[3:]))
evgrxenbl.add(int(evgch.propty[3:]))
evgrxenbl = sorted(evgrxenbl)

hlevts = _HLTimeSearch.get_hl_events()
evtin0 = int(hlevts['Intlk'].strip('Evt'))
Expand Down
6 changes: 4 additions & 2 deletions siriuspy/siriuspy/orbintlk/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ def __init__(self, tests=False):
pvo.add_callback(self._callback_evg_rxlock)

# # Fouts
foutnames = list(self._const.FOUTS_2_MON) + \
list(self._const.FOUTSFIXED_RXENBL.keys())
foutnames = list(
self._const.FOUTS_2_MON |
self._const.FOUTSFIXED_RXENBL.keys()
)
self._thread_cbfout = {fout: None for fout in foutnames}
self._fout_devs = {
devname: _Device(
Expand Down

0 comments on commit ac35904

Please sign in to comment.