Skip to content

Commit

Permalink
fofb.ENH: use FamBPMs.ID_BPMS new constant as FamFOFBControllers ID B…
Browse files Browse the repository at this point in the history
…PM DCC list
  • Loading branch information
anacso17 committed Oct 31, 2024
1 parent 8aa499f commit c5a8d20
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions siriuspy/siriuspy/devices/fofb.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from .device import Device as _Device, DeviceSet as _DeviceSet
from .afc_acq_core import AFCACQLogicalTrigger
from .bpm_fam import FamBPMs
from .timing import Event
from .pwrsupply import PowerSupplyFC
from .psconv import StrengthConv
Expand Down Expand Up @@ -297,13 +298,9 @@ def __init__(self):
self._bpm_ids[bpm] = bpmids[idx]
self._bpm_dccs[bpm] = BPMDCC(bpm)
self._bpm_trgs[bpm] = AFCACQLogicalTrigger(bpm, self.BPM_TRIGS_ID)
bpm2dsbl = [
'SI-'+sub+':DI-BPM-'+idx
for sub in ['06SB', '07SP', '08SB', '09SA', '10SB', '11SP', '12SB', '14SB']
for idx in ['1', '2']
]
# # DCCs to disable (ID BPMs)
self._bpmdcc2dsbl = dict()
for bpm in bpm2dsbl:
for bpm in FamBPMs.ID_BPMS:
self._bpmdcc2dsbl[bpm] = BPMDCC(bpm)
# fofb event
self._evt_fofb = Event('FOFBS')
Expand Down

0 comments on commit c5a8d20

Please sign in to comment.