Skip to content

Commit

Permalink
fix(uxm_setup.turn_on_fixed_tones): Typos and mistakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristpinsm committed Sep 10, 2024
1 parent 0fb21e8 commit e06f1e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sodetlib/operations/uxm_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,11 @@ def turn_on_fixed_tones(S, cfg, band):
try:
foff = cfg.dev.bands[band]["fixed_tones"]["freq_offsets"]
channels = cfg.dev.bands[band]["fixed_tones"]["channels"]
amp = cfg.dev.bands[band]["fixed_tones"].get("tone_power", None)
except KeyError:
tone_power = cfg.dev.bands[band]["fixed_tones"].get("tone_power", None)
except KeyError as e:
raise ValueError(
"No fixed tones present in device config. Use `setup_fixed_tones` to add some."
)
) from e
if len(foff) != len(channels):
raise ValueError(
"Number of fixed tone channels in device config is different from number of "
Expand All @@ -494,8 +494,8 @@ def turn_on_fixed_tones(S, cfg, band):
amp[channels] = tone_power
feedback[channels] = 0

self.set_amplitude_scale_array(band, amp)
self.set_feedback_enable_array(band, feedback)
S.set_amplitude_scale_array(band, amp)
S.set_feedback_enable_array(band, feedback)


@sdl.set_action()
Expand Down

0 comments on commit e06f1e1

Please sign in to comment.