From a384ca2befcdbf37744fdb4f9cfdbec58aedf89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Thu, 28 Feb 2013 19:14:14 +0100 Subject: [PATCH] Rename variables for better readability --- skimage/measure/fit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/skimage/measure/fit.py b/skimage/measure/fit.py index b0a8c4e7..d767681b 100644 --- a/skimage/measure/fit.py +++ b/skimage/measure/fit.py @@ -373,10 +373,10 @@ class EllipseModel(BaseModel): def Dfun(t, xi, yi): xt, yt = self.predict_xy(t) - dfx = - 2 * (xi - xt) * (- a * np.cos(theta) * np.sin(t) - - b * np.sin(theta) * np.cos(t)) - dfy = - 2 * (yi - yt) * (- a * np.sin(theta) * np.sin(t) - + b * np.cos(theta) * np.cos(t)) + dfx_t = - 2 * (xi - xt) * (- a * np.cos(theta) * np.sin(t) + - b * np.sin(theta) * np.cos(t)) + dfy_t = - 2 * (yi - yt) * (- a * np.sin(theta) * np.sin(t) + + b * np.cos(theta) * np.cos(t)) return dfx + dfy residuals = np.empty((N, ), dtype=np.double)