Skip to content

Commit

Permalink
Merge pull request #1138 from lnls-sirius/fix/get_sampling_frequency
Browse files Browse the repository at this point in the history
DEV.BPM.BUG: Fix `get_sampling_frequency` method for ADC rate freq
  • Loading branch information
vellosok75 authored Dec 20, 2024
2 parents 56b36e2 + ad9299b commit 4109f34
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 4109f34

Please sign in to comment.