From d3aaa8a692d1da86ed6cacda318cc7d4e3f7c49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Thu, 27 Jan 2022 09:58:28 -0300 Subject: [PATCH] Bugfix: model.multivariate.variable was not considering the 'func' parameter --- pyFTS/models/multivariate/variable.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyFTS/models/multivariate/variable.py b/pyFTS/models/multivariate/variable.py index 0c97958..73e82e1 100644 --- a/pyFTS/models/multivariate/variable.py +++ b/pyFTS/models/multivariate/variable.py @@ -47,11 +47,11 @@ class Variable: :param kwargs: :return: """ - fs = kwargs.get('partitioner', Grid.GridPartitioner) - mf = kwargs.get('func', Membership.trimf) - np = kwargs.get('npart', 10) + fs = kwargs.pop('partitioner', Grid.GridPartitioner) + mf = kwargs.pop('func', Membership.trimf) + np = kwargs.pop('npart', 10) data = kwargs.get('data', None) - kw = kwargs.get('partitioner_specific', {}) + kw = kwargs.pop('partitioner_specific', {}) self.partitioner = fs(data=data[self.data_label].values, npart=np, func=mf, transformation=self.transformation, prefix=self.alias, variable=self.name, **kw)