formatting change
This commit is contained in:
parent
48bd4ffaf2
commit
993b530f3a
@ -42,7 +42,7 @@ class Fitter:
|
|||||||
return current
|
return current
|
||||||
|
|
||||||
k = np.zeros(current.size)
|
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()
|
k /= k.sum()
|
||||||
|
|
||||||
if tau > 0:
|
if tau > 0:
|
||||||
@ -210,9 +210,7 @@ if __name__ == "__main__":
|
|||||||
res_filename = res_filename.replace(" ", "_").replace(":", "-")
|
res_filename = res_filename.replace(" ", "_").replace(":", "-")
|
||||||
fit_hist.to_csv(res_filename, index=True)
|
fit_hist.to_csv(res_filename, index=True)
|
||||||
|
|
||||||
eid_cleaned = re.sub(
|
eid_cleaned = re.sub(r"[^\w.-]", "", eid) # Eemaldab eritahed
|
||||||
r"[^\w.-]", "", eid
|
|
||||||
) # Eemaldab eritahed
|
|
||||||
fig.savefig(f"plot_{eid_cleaned}.png")
|
fig.savefig(f"plot_{eid_cleaned}.png")
|
||||||
fig.savefig(f"plot_{eid_cleaned}.pdf")
|
fig.savefig(f"plot_{eid_cleaned}.pdf")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user