Skip to content

Commit 3fe80de

Browse files
committed
bugfix for copy
1 parent d73ef67 commit 3fe80de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clusteval/clusteval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def fit(self, X, savemem=False):
175175
# Store the input data in self
176176
if not savemem:
177177
logger.info('Saving data in memory.')
178-
self.X = X.copy()
178+
self.X = copy.deepcopy(X) if X is not None else None
179179

180180
if isinstance(X, pd.DataFrame): X = X.values
181181
if 'array' not in str(type(X)): raise ValueError('Input data must be of type numpy array')

0 commit comments

Comments
 (0)