From 13dcc360302fd898213962149c349eb67537300f Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Sun, 9 Jul 2017 14:40:24 +0200 Subject: [PATCH] pep8 --- wafo/spectrum/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wafo/spectrum/models.py b/wafo/spectrum/models.py index 1e0e9a0..b70666a 100644 --- a/wafo/spectrum/models.py +++ b/wafo/spectrum/models.py @@ -239,6 +239,7 @@ class Bretschneider(ModelSpectrum): """ type = 'Bretschneider' + def __init__(self, Hm0=7.0, Tp=11.0, N=5, M=4, chk_seastate=True, **kwds): super(Bretschneider, self).__init__(Hm0, Tp) self.N = N @@ -1108,7 +1109,6 @@ class McCormick(Bretschneider): N = M + 1.0 super(McCormick, self).__init__(Hm0, Tp, N, M, chk_seastate) - def _localoptfun(self, x): # LOCALOPTFUN Local function to optimize. y = 1.0 + x @@ -1313,7 +1313,6 @@ class Wallop(Bretschneider): N = abs((log(2. * pi ** 2.) + 2 * log(Hm0 / 4) - 2.0 * log(Lp)) / log(2)) - super(Wallop, self).__init__(Hm0, Tp, N, M, chk_seastate)