mirror of
https://github.com/vale981/bandfit
synced 2025-03-04 17:11:38 -05:00
correct ordering of errors
This commit is contained in:
parent
7decf71a00
commit
b878b02d78
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue