From cb6f276588146de43486b70a96c17a06786771e8 Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Sun, 9 Jul 2017 15:48:22 +0200 Subject: [PATCH] Replaced method with staticmethod --- wafo/spectrum/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wafo/spectrum/models.py b/wafo/spectrum/models.py index b6dab75..ecc73cf 100644 --- a/wafo/spectrum/models.py +++ b/wafo/spectrum/models.py @@ -1985,7 +1985,8 @@ class Spreading(object): return where(x < 100., xk / sinh(xk), -2. * xk / (exp(xk) * expm1(-2. * xk))) - def _check_theta(self, theta): + @staticmethod + def _check_theta(theta): L = abs(theta[-1] - theta[0]) if abs(L - np.pi) > _EPS: raise ValueError('theta must cover all angles -pi -> pi')