Skip to content

Commit

Permalink
Make copy=True in calls to check_diagrams in Scaler.transform and S…
Browse files Browse the repository at this point in the history
…caler.inverse_transform
  • Loading branch information
ulupo committed Aug 12, 2020
1 parent bf84a09 commit a532cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtda/diagrams/preprocessing.py
Original file line number Diff line number Diff line change
@@ -285,7 +285,7 @@ def transform(self, X, y=None):
"""
check_is_fitted(self)

Xs = check_diagrams(X)
Xs = check_diagrams(X, copy=True)
Xs[:, :, :2] /= self.scale_
return Xs

@@ -306,7 +306,7 @@ def inverse_transform(self, X):
"""
check_is_fitted(self)

Xs = check_diagrams(X)
Xs = check_diagrams(X, copy=True)
Xs[:, :, :2] *= self.scale_
return Xs

0 comments on commit a532cc8

Please sign in to comment.