qiskit-community / qiskit-experiments

Qiskit Experiments
https://qiskit-community.github.io/qiskit-experiments/
Apache License 2.0
160 stars 126 forks source link

Error in the plotter if there is no valid fitter error #1413

Open dcmckayibm opened 8 months ago

dcmckayibm commented 8 months ago

Informations

What is the current behavior?

Error in line 159 of curve_plotter if y_interp_err is not a float.

I fixed this locally with if type(y_interp_err) is not float: y_interp_err = 0

however, not sure that's the best way to do this... because there should be some awareness that the interp_err is not getting calculated right

Steps to reproduce the problem

Try to fit a curve to some absurd data

What is the expected behavior?

Suggested solutions