Bugfix proposed by FABRICIO JAVIER ERAZO COSTA

This commit is contained in:
Petrônio Cândido de Lima e Silva 2023-03-20 11:08:37 -03:00 committed by GitHub
parent 6885f2df5b
commit 5757fa34e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]]