Skip to content

Commit

Permalink
fix: rename 'Array' registers
Browse files Browse the repository at this point in the history
  • Loading branch information
tristpinsm committed Jun 21, 2024
1 parent 823ba71 commit 2275c25
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions python/pysmurf/client/command/smurf_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ def get_amplitude_scales(self, band, **kwargs):
self._cryo_root(band) + self._amplitude_scales_reg,
**kwargs)

_amplitude_scale_array_reg = 'amplitudeScaleArray'
_amplitude_scale_array_reg = 'amplitudeScale'

def set_amplitude_scale_array(self, band, val, **kwargs):
"""
Expand Down Expand Up @@ -1414,7 +1414,7 @@ def set_amplitude_scale_array_currentchans(self, band, tone_power,
new_amp[np.where(old_amp!=0)] = tone_power
self.set_amplitude_scale_array(self, new_amp, **kwargs)

_feedback_enable_array_reg = 'feedbackEnableArray'
_feedback_enable_array_reg = 'feedbackEnable'

def set_feedback_enable_array(self, band, val, **kwargs):
"""
Expand Down Expand Up @@ -1815,7 +1815,7 @@ def get_feedback_enable(self, band, **kwargs):
self._band_root(band) + self._feedback_enable_reg,
**kwargs)

_loop_filter_output_array_reg = 'loopFilterOutputArray'
_loop_filter_output_array_reg = 'loopFilterOutput'

def get_loop_filter_output_array(self, band, **kwargs):
"""
Expand Down Expand Up @@ -1843,7 +1843,7 @@ def get_tone_frequency_offset_mhz(self, band, **kwargs):
self._tone_frequency_offset_mhz_reg,
**kwargs)

_center_frequency_array_reg = 'centerFrequencyArray'
_center_frequency_array_reg = 'centerFrequency'

def set_center_frequency_array(self, band, val, **kwargs):
"""
Expand Down Expand Up @@ -1876,7 +1876,7 @@ def get_feedback_gain(self, band, **kwargs):
self._band_root(band) + self._feedback_gain_reg,
**kwargs)

_eta_phase_array_reg = 'etaPhaseArray'
_eta_phase_array_reg = 'etaPhase'

def set_eta_phase_array(self, band, val, **kwargs):
"""
Expand All @@ -1892,7 +1892,7 @@ def get_eta_phase_array(self, band, **kwargs):
self._cryo_root(band) + self._eta_phase_array_reg,
**kwargs)

_frequency_error_array_reg = 'frequencyErrorArray'
_frequency_error_array_reg = 'frequencyError'

def set_frequency_error_array(self, band, val, **kwargs):
"""
Expand All @@ -1908,7 +1908,7 @@ def get_frequency_error_array(self, band, **kwargs):
self._cryo_root(band) + self._frequency_error_array_reg,
**kwargs)

_eta_mag_array_reg = 'etaMagArray'
_eta_mag_array_reg = 'etaMag'

def set_eta_mag_array(self, band, val, **kwargs):
"""
Expand Down

0 comments on commit 2275c25

Please sign in to comment.