Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Mar 16, 2023
1 parent d337016 commit 9e7ad40
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/qibocal/fitting/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def lorentzian_fit(data, x, y, qubits, resonator_type, labels, fit_file_name=Non
+ fit_res.best_values["offset"]
)

freq = f0
freq = f0 * 1e9

data_fit.add(
{
Expand All @@ -233,19 +233,6 @@ def lorentzian_fit(data, x, y, qubits, resonator_type, labels, fit_file_name=Non
{key: 0 if key != "qubit" else qubit for key in data_fit.df.columns}
)

freq = f0 * 1e9

data_fit.add(
{
labels[0]: freq,
labels[1]: peak_voltage,
"popt0": fit_res.best_values["amplitude"],
"popt1": fit_res.best_values["center"],
"popt2": fit_res.best_values["sigma"],
"popt3": fit_res.best_values["offset"],
"qubit": qubit,
}
)
return data_fit


Expand Down

0 comments on commit 9e7ad40

Please sign in to comment.