Skip to content

Commit

Permalink
Merge branch 'master' into add-trims-idff
Browse files Browse the repository at this point in the history
  • Loading branch information
xresende committed Jan 9, 2025
2 parents ae03a83 + bdf5baa commit 974827c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion siriuspy/siriuspy/devices/bpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,9 @@ def get_sampling_frequency(
"""
acq_rate = self.acq_channel_str if not acq_rate else acq_rate
fadc = rf_freq / self.harmonic_number * self.tbt_rate
if acq_rate.lower().startswith('tbt'):
if acq_rate.lower().startswith('adc'):
return fadc
elif acq_rate.lower().startswith('tbt'):
return fadc / self.tbt_rate
elif acq_rate.lower().startswith('fofb'):
return fadc / self.fofb_rate
Expand Down
4 changes: 2 additions & 2 deletions siriuspy/siriuspy/devices/rf.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ class _BaseLLRF(_Device):
'AmpRefMin-RB', 'AmpRefMin-SP', 'PhsRefMin-RB', 'PhsRefMin-SP',
'CondEnbl-Sts', 'CondEnbl-Sel', 'CondDuty-RB', 'CondDuty-SP',
'CondDutyCycle-Mon', 'PhShCav-SP', 'PhShCav-RB',
'SLPILim-SP', 'SLPILim-RB', 'SLKI-SP', 'SLKI-RB' 'SLKP-SP', 'SLKI-RB'
)
'SLPILim-SP', 'SLPILim-RB', 'SLKI-SP', 'SLKI-RB', 'SLKP-SP', 'SLKI-RB',
)

def __init__(self, devname, props2init='all'):
"""."""
Expand Down

0 comments on commit 974827c

Please sign in to comment.