correct ordering of errors

This commit is contained in:
Valentin Boettcher 2023-03-21 14:02:12 -04:00
parent 7decf71a00
commit b878b02d78
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -88,13 +88,14 @@ def detect_bands_fixed_k(
),
)
e_1, e_2 = np.sort((e_1, e_2))
σ_1, σ_2, _, _ = np.sqrt(np.diag(cov))
(e_1, σ_1), (e_2, σ_2) = np.sort(((e_1, σ_1), (e_2, σ_2)), axis=0)
# es = np.linspace(0, col.size, 1000)
# plt.plot(col)
# plt.plot(es, double_lorentzian(es, e_1, e_2, γ, _))
σ_1, σ_2, _, _ = np.sqrt(np.diag(cov))
return e_1, e_2, σ_1, σ_2