Warning: An ndarray of dimension greater than 1 is used

This commit is contained in:
Антон Скалкин 2024-08-08 11:59:14 +04:00
parent e55ef29351
commit e1f72797ea

View File

@ -1,6 +1,7 @@
from pyFTS.common import FuzzySet, Membership
import numpy as np
from scipy.spatial import KDTree
import warnings
class Partitioner(object):
@ -46,6 +47,9 @@ class Partitioner(object):
data = kwargs.get('data',[None])
if len(data.shape) > 1:
warnings.warn(f"An ndarray of dimension greater than 1 is used. shape.len(): {len(data.shape)}")
if self.indexer is not None:
ndata = self.indexer.get_data(data)
else: