From bcc9c2dcd1b7ecc645bae76b27d36e63ccccc0d6 Mon Sep 17 00:00:00 2001 From: janis Date: Wed, 29 Jun 2022 17:53:40 +0200 Subject: [PATCH] redundant code was removed --- plot_generator/fit.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plot_generator/fit.py b/plot_generator/fit.py index 3663b9c..6015724 100644 --- a/plot_generator/fit.py +++ b/plot_generator/fit.py @@ -30,7 +30,6 @@ if go == 1: fit = np.polyfit(x, y, 2) print(fit) - formula = "F(U) = %sU^2+%sU+%s"%(str(), str(round(float(fit[1]), 4)), str(round(float(fit[2]), 4))) formula = f"F(U) = {round(float(fit[0]), 4)}U^2+{round(float(fit[1]), 4)}U+{round(float(fit[2]), 4)}" fit_fn = np.poly1d(fit)