Skip to content

Commit

Permalink
fix mode warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Edoardo-Pedicillo committed Jul 5, 2023
1 parent 5cd7cef commit 477def4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/qibocal/protocols/characterization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ def fit_punchout(data: Data, fit_type: str):
freq_hp = peak_freqs[peak_freqs < middle_freq]
freq_lp = peak_freqs[peak_freqs >= middle_freq]

freq_hp = mode(freq_hp)[0]
freq_lp = mode(freq_lp)[0]
freq_hp = mode(freq_hp, keepdims=True)[0]
freq_lp = mode(freq_lp, keepdims=True)[0]

if fit_type == "amp":
if data.resonator_type == "3D":
ro_val = getattr(qubit_data, fit_type)[
Expand Down

0 comments on commit 477def4

Please sign in to comment.