From 435a6e99a2b5025fe2696ff8dc1ad66a53c64d6a Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Mon, 5 Sep 2016 21:32:29 +0200 Subject: [PATCH] Replaced method with a static function --- wafo/integrate_oscillating.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wafo/integrate_oscillating.py b/wafo/integrate_oscillating.py index dc36db6..97f6a0e 100644 --- a/wafo/integrate_oscillating.py +++ b/wafo/integrate_oscillating.py @@ -32,7 +32,8 @@ class PolyBasis(object): def eval(t, c): return polynomial.polyval(t, c) - def _coefficients(self, k): + @staticmethod + def _coefficients(k): c = np.zeros(k + 1) c[k] = 1 return c