diff --git a/pygsp/filters/abspline.py b/pygsp/filters/abspline.py index 11a81c0e..df9cd9b9 100644 --- a/pygsp/filters/abspline.py +++ b/pygsp/filters/abspline.py @@ -40,7 +40,7 @@ class Abspline(Filter): """ - def __init__(self, G, Nf=6, lpfactor=20, scales=None, **kwargs): + def __init__(self, G, Nf=6, lpfactor=20, scales=None): def kernel_abspline3(x, alpha, beta, t1, t2): M = np.array([[1, t1, t1**2, t1**3], @@ -98,4 +98,4 @@ def kernel_abspline3(x, alpha, beta, t1, t2): lminfac = .6 * G.lmin g[0] = lambda x: gamma_l * gl(x / lminfac) - super(Abspline, self).__init__(G, g, **kwargs) + super(Abspline, self).__init__(G, g) diff --git a/pygsp/filters/expwin.py b/pygsp/filters/expwin.py index 29f789a5..bff22cd0 100644 --- a/pygsp/filters/expwin.py +++ b/pygsp/filters/expwin.py @@ -33,7 +33,7 @@ class Expwin(Filter): """ - def __init__(self, G, bmax=0.2, a=1., **kwargs): + def __init__(self, G, bmax=0.2, a=1.): def fx(x, a): y = np.exp(-float(a)/x) @@ -53,4 +53,4 @@ def ffin(x, a): g = [lambda x: ffin(np.float64(x)/bmax/G.lmax, a)] - super(Expwin, self).__init__(G, g, **kwargs) + super(Expwin, self).__init__(G, g) diff --git a/pygsp/filters/halfcosine.py b/pygsp/filters/halfcosine.py index 9b5604ef..386035b7 100644 --- a/pygsp/filters/halfcosine.py +++ b/pygsp/filters/halfcosine.py @@ -31,7 +31,7 @@ class HalfCosine(Filter): """ - def __init__(self, G, Nf=6, **kwargs): + def __init__(self, G, Nf=6): if Nf <= 2: raise ValueError('The number of filters must be higher than 2.') @@ -45,4 +45,4 @@ def __init__(self, G, Nf=6, **kwargs): for i in range(Nf): g.append(lambda x, ind=i: main_window(x - dila_fact/3. * (ind - 2))) - super(HalfCosine, self).__init__(G, g, **kwargs) + super(HalfCosine, self).__init__(G, g) diff --git a/pygsp/filters/heat.py b/pygsp/filters/heat.py index 1ec81822..dbe0e5da 100644 --- a/pygsp/filters/heat.py +++ b/pygsp/filters/heat.py @@ -61,7 +61,7 @@ class Heat(Filter): """ - def __init__(self, G, tau=10, normalize=False, **kwargs): + def __init__(self, G, tau=10, normalize=False): try: iter(tau) @@ -76,4 +76,4 @@ def kernel(x, t): norm = np.linalg.norm(kernel(G.e, t)) if normalize else 1 g.append(lambda x, t=t, norm=norm: kernel(x, t) / norm) - super(Heat, self).__init__(G, g, **kwargs) + super(Heat, self).__init__(G, g) diff --git a/pygsp/filters/held.py b/pygsp/filters/held.py index bd224f50..a9126270 100644 --- a/pygsp/filters/held.py +++ b/pygsp/filters/held.py @@ -45,7 +45,7 @@ class Held(Filter): """ - def __init__(self, G, a=2./3, **kwargs): + def __init__(self, G, a=2./3): g = [lambda x: held(x * (2./G.lmax), a)] g.append(lambda x: np.real(np.sqrt(1 - (held(x * (2./G.lmax), a)) @@ -67,4 +67,4 @@ def held(val, a): return y - super(Held, self).__init__(G, g, **kwargs) + super(Held, self).__init__(G, g) diff --git a/pygsp/filters/itersine.py b/pygsp/filters/itersine.py index 38f558d1..075ba3b0 100644 --- a/pygsp/filters/itersine.py +++ b/pygsp/filters/itersine.py @@ -35,7 +35,7 @@ class Itersine(Filter): >>> G.plot_signal(s, ax=axes[1]) """ - def __init__(self, G, Nf=6, overlap=2., **kwargs): + def __init__(self, G, Nf=6, overlap=2.): def k(x): return np.sin(0.5*np.pi*np.power(np.cos(x*np.pi), 2)) * ((x >= -0.5)*(x <= 0.5)) @@ -46,4 +46,4 @@ def k(x): for i in range(1, Nf + 1): g.append(lambda x, ind=i: k(x/scale - (ind - overlap/2.)/overlap) / np.sqrt(overlap)*np.sqrt(2)) - super(Itersine, self).__init__(G, g, **kwargs) + super(Itersine, self).__init__(G, g) diff --git a/pygsp/filters/mexicanhat.py b/pygsp/filters/mexicanhat.py index b58ca2fe..9426e3fc 100644 --- a/pygsp/filters/mexicanhat.py +++ b/pygsp/filters/mexicanhat.py @@ -55,8 +55,7 @@ class MexicanHat(Filter): """ - def __init__(self, G, Nf=6, lpfactor=20, scales=None, normalize=False, - **kwargs): + def __init__(self, G, Nf=6, lpfactor=20, scales=None, normalize=False): lmin = G.lmax / lpfactor @@ -82,4 +81,4 @@ def kernel(x, i=i): kernels.append(kernel) - super(MexicanHat, self).__init__(G, kernels, **kwargs) + super(MexicanHat, self).__init__(G, kernels) diff --git a/pygsp/filters/meyer.py b/pygsp/filters/meyer.py index 7252e8c2..9466d0e8 100644 --- a/pygsp/filters/meyer.py +++ b/pygsp/filters/meyer.py @@ -42,7 +42,7 @@ class Meyer(Filter): """ - def __init__(self, G, Nf=6, scales=None, **kwargs): + def __init__(self, G, Nf=6, scales=None): if scales is None: scales = (4./(3 * G.lmax)) * np.power(2., np.arange(Nf-2, -1, -1)) @@ -90,4 +90,4 @@ def v(x): return r - super(Meyer, self).__init__(G, g, **kwargs) + super(Meyer, self).__init__(G, g) diff --git a/pygsp/filters/papadakis.py b/pygsp/filters/papadakis.py index 94f29821..2397a2e6 100644 --- a/pygsp/filters/papadakis.py +++ b/pygsp/filters/papadakis.py @@ -40,7 +40,7 @@ class Papadakis(Filter): >>> G.plot_signal(s, ax=axes[1]) """ - def __init__(self, G, a=0.75, **kwargs): + def __init__(self, G, a=0.75): g = [lambda x: papadakis(x * (2./G.lmax), a)] g.append(lambda x: np.real(np.sqrt(1 - (papadakis(x*(2./G.lmax), a)) ** @@ -61,4 +61,4 @@ def papadakis(val, a): return y - super(Papadakis, self).__init__(G, g, **kwargs) + super(Papadakis, self).__init__(G, g) diff --git a/pygsp/filters/regular.py b/pygsp/filters/regular.py index 85c85987..21473cf9 100644 --- a/pygsp/filters/regular.py +++ b/pygsp/filters/regular.py @@ -48,7 +48,7 @@ class Regular(Filter): >>> G.plot_signal(s, ax=axes[1]) """ - def __init__(self, G, d=3, **kwargs): + def __init__(self, G, d=3): g = [lambda x: regular(x * (2./G.lmax), d)] g.append(lambda x: np.real(np.sqrt(1 - (regular(x * (2./G.lmax), d)) @@ -65,4 +65,4 @@ def regular(val, d): return np.sin(np.pi / 4.*(1 + output)) - super(Regular, self).__init__(G, g, **kwargs) + super(Regular, self).__init__(G, g) diff --git a/pygsp/filters/simoncelli.py b/pygsp/filters/simoncelli.py index 564197c9..07a82edd 100644 --- a/pygsp/filters/simoncelli.py +++ b/pygsp/filters/simoncelli.py @@ -41,7 +41,7 @@ class Simoncelli(Filter): """ - def __init__(self, G, a=2./3, **kwargs): + def __init__(self, G, a=2./3): g = [lambda x: simoncelli(x * (2./G.lmax), a)] g.append(lambda x: np.real(np.sqrt(1 - @@ -63,4 +63,4 @@ def simoncelli(val, a): return y - super(Simoncelli, self).__init__(G, g, **kwargs) + super(Simoncelli, self).__init__(G, g) diff --git a/pygsp/filters/simpletight.py b/pygsp/filters/simpletight.py index 5a2dcc15..402a44aa 100644 --- a/pygsp/filters/simpletight.py +++ b/pygsp/filters/simpletight.py @@ -42,7 +42,7 @@ class SimpleTight(Filter): """ - def __init__(self, G, Nf=6, scales=None, **kwargs): + def __init__(self, G, Nf=6, scales=None): def kernel(x, kerneltype): r""" @@ -98,4 +98,4 @@ def h(x): for i in range(Nf - 1): g.append(lambda x, i=i: kernel(scales[i] * x, 'wavelet')) - super(SimpleTight, self).__init__(G, g, **kwargs) + super(SimpleTight, self).__init__(G, g)