Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions qiskit_experiments/curve_analysis/visualization/curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,10 @@ def plot_curve_fit(
plot_opts["linewidth"] = 2

# Result data
if isinstance(result, dict):
# TODO: remove this after T1 T2 migration to curve analysis
fit_params = result["popt"]
param_keys = result["popt_keys"]
fit_errors = result["popt_err"]
xmin, xmax = result["x_range"]
else:
fit_params = result.popt
param_keys = result.popt_keys
fit_errors = result.popt_err
xmin, xmax = result.x_range
fit_params = result.popt
param_keys = result.popt_keys
fit_errors = result.popt_err
xmin, xmax = result.x_range

# Plot fit data
xs = np.linspace(xmin, xmax, num_fit_points)
Expand Down