remove more unescessary code

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

View file

@ -121,13 +121,9 @@ def plot_data_with_bands(data, bands):
plt.errorbar(ks, bands[:, 1], yerr=bands[:, 3])
# return sc.optimize.curve_fit(double_lorentzian, e_axis, col, (0, 10, 0, 3))
def candidate(k, c, d, a, δb, k_scale, k_shift):
k = np.asarray(k[: k.size // 2]) * k_scale + k_shift
energies = energy(k, a, a + δb * a, c, d)
# energies /= energies.max()
return np.hstack([energies, energies])