Skip to content

Commit

Permalink
Merge pull request #1074 from lnls-sirius/fix-fambpms
Browse files Browse the repository at this point in the history
Fix "config_mturn_acquisition"
  • Loading branch information
fernandohds564 authored Mar 2, 2024
2 parents 5562134 + 7d18946 commit 0b1f066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion siriuspy/siriuspy/devices/bpm_fam.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ def config_mturn_acquisition(
'adcswp': self._csbpm.AcqChan.ADCSwp,
'adc': self._csbpm.AcqChan.ADC,
}
acq_rate = dic.get(acq_rate.lower(), acq_rate)
if isinstance(acq_rate, str):
acq_rate = dic.get(acq_rate.lower())
if acq_rate not in self._csbpm.AcqChan:
raise ValueError(
str(acq_rate) + ' is not a valid acquisition rate.')
Expand Down

0 comments on commit 0b1f066

Please sign in to comment.