Warning: An ndarray of dimension greater than 1 is used
This commit is contained in:
parent
e55ef29351
commit
e1f72797ea
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user