Skip to content

Commit

Permalink
fix(full_band_ampl_sweep): Remove redundant scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
tristpinsm committed Aug 30, 2024
1 parent 06c05de commit 8d9b23e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions python/pysmurf/client/tune/smurf_tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -3722,16 +3722,10 @@ def full_band_ampl_sweep(self, band, subband, tone_power, n_read, n_step=31):

I = self.get_eta_scan_results_real(band, count=n_step*n_channels)
I = np.asarray(I)
idx = np.where( I > 2**23 )
I[idx] = I[idx] - 2**24
I /= 2**23
I = I.reshape(n_channels, n_step)

Q = self.get_eta_scan_results_imag(band, count=n_step*n_channels)
Q = np.asarray(Q)
idx = np.where( Q > 2**23 )
Q[idx] = Q[idx] - 2**24
Q /= 2**23
Q = Q.reshape(n_channels, n_step)

resp_scan = I + 1j*Q
Expand Down

0 comments on commit 8d9b23e

Please sign in to comment.