From 6f80365285922ae5572d74ebeffe58e7850558b9 Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Thu, 29 Dec 2016 17:21:31 +0100 Subject: [PATCH] pep8 --- wafo/transform/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wafo/transform/models.py b/wafo/transform/models.py index c3dd0a1..9f16a4f 100644 --- a/wafo/transform/models.py +++ b/wafo/transform/models.py @@ -302,7 +302,6 @@ class TrHermite(TrCommon2): xn = self._backward(yn) return self.sigma * xn + self.mean - def _solve_quadratic(self, p, xn): # Quadratic: Solve a*u**2+b*u+c = xn coefs = p.coeffs @@ -310,8 +309,8 @@ class TrHermite(TrCommon2): b = coefs[1] c = coefs[2] - xn t = 0.5 * (b + sign(b) * sqrt(b ** 2 - 4 * a * c)) - # so1 = t/a # largest solution - so2 = -c / t # smallest solution + # so1 = t/a # largest solution + so2 = -c / t # smallest solution return so2 def _poly_inv(self, p, xn):