reverted tomfoolery

This commit is contained in:
ralf 2024-08-12 14:05:54 +03:00
parent 02bcffbe63
commit 85c519ce95

View File

@ -82,18 +82,18 @@ class Fitter:
self.iteration += 1 self.iteration += 1
print(self.iteration, parameters.tolist(), "err", err) print(self.iteration, parameters.tolist(), "err", err)
# if self.iteration < -0: if self.iteration < -0:
# t = self.time_points[self.current_time_indecies] t = self.time_points[self.current_time_indecies]
# plt.plot( plt.plot(
# t, _calc_curr[self.current_time_indecies], label="calculated current" t, _calc_curr[self.current_time_indecies], label="calculated current"
# ) )
# plt.plot(t, self.measured_current, label="measured current") plt.plot(t, self.measured_current, label="measured current")
# plt.plot(t, calculated_current, label="conv calculated current") plt.plot(t, calculated_current, label="conv calculated current")
# plt.plot(t, self.measured_current - calculated_current, label="error") plt.plot(t, self.measured_current - calculated_current, label="error")
# plt.xlabel("time, ms") plt.xlabel("time, ms")
# plt.ylabel("current, pA/pF") plt.ylabel("current, pA/pF")
# plt.legend(frameon=False) plt.legend(frameon=False)
# plt.show() plt.show()
return res # , measured_fluo - calculated_fluo) return res # , measured_fluo - calculated_fluo)
@ -226,5 +226,3 @@ if __name__ == "__main__":
# fig.savefig(f"{plot_filename}.png") # fig.savefig(f"{plot_filename}.png")
# fig.savefig(f"{plot_filename}.pdf") # fig.savefig(f"{plot_filename}.pdf")
fig.savefig("naidis_fit.pdf") fig.savefig("naidis_fit.pdf")
#matplotlib.pyplot.close()
#fig = plt.figure()