Skip to content

Commit

Permalink
FIX ensure copy when splitting signal (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
CedricAllain committed Apr 27, 2023
1 parent 3819efb commit 163e606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alphacsc/utils/signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def split_signal(X, n_splits=1, apply_window=True):

n_channels, n_times = X.shape
n_times = n_times // n_splits
X_split = X[:, :n_splits * n_times]
X_split = X[:, :n_splits * n_times].copy()
X_split = X_split.reshape(n_channels, n_splits, n_times).swapaxes(0, 1)

# Apply a window to the signal to reduce the border artifacts
Expand Down

0 comments on commit 163e606

Please sign in to comment.