From 5757fa34e52ca26cf8aee8bb75915a553ff5fc83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Mon, 20 Mar 2023 11:08:37 -0300 Subject: [PATCH] Bugfix proposed by FABRICIO JAVIER ERAZO COSTA --- pyFTS/partitioners/partitioner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyFTS/partitioners/partitioner.py b/pyFTS/partitioners/partitioner.py index 22c0aaf..165b767 100644 --- a/pyFTS/partitioners/partitioner.py +++ b/pyFTS/partitioners/partitioner.py @@ -323,7 +323,7 @@ class Partitioner(object): it represents the fuzzy set name. :return: the fuzzy set """ - if isinstance(item, (int, np.int, np.int8, np.int16, np.int32, np.int64)): + if isinstance(item, (int, np.int8, np.int16, np.int32, np.int64)): if item < 0 or item >= self.partitions: raise ValueError("The fuzzy set index must be between 0 and {}.".format(self.partitions)) return self.sets[self.ordered_sets[item]]