formatting change

This commit is contained in:
ralf 2024-07-17 12:43:51 +03:00
parent 48bd4ffaf2
commit 993b530f3a

View File

@ -42,7 +42,7 @@ class Fitter:
return current
k = np.zeros(current.size)
k[k.size // 2:] = np.exp(-np.arange(k.size // 2) / np.abs(tau))
k[k.size // 2 :] = np.exp(-np.arange(k.size // 2) / np.abs(tau))
k /= k.sum()
if tau > 0:
@ -210,9 +210,7 @@ if __name__ == "__main__":
res_filename = res_filename.replace(" ", "_").replace(":", "-")
fit_hist.to_csv(res_filename, index=True)
eid_cleaned = re.sub(
r"[^\w.-]", "", eid
) # Eemaldab eritahed
eid_cleaned = re.sub(r"[^\w.-]", "", eid) # Eemaldab eritahed
fig.savefig(f"plot_{eid_cleaned}.png")
fig.savefig(f"plot_{eid_cleaned}.pdf")