Skip to content

Commit fa85e42

Browse files
committed
add std as bad channel detection method
1 parent bf84469 commit fa85e42

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

examples/tutorials/forhowto/plot_1_working_with_tetrodes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,13 @@
8080

8181
##############################################################################
8282
# Tetrodes often have dead channels, so it is advised to try and detect
83-
# and remove these
83+
# and remove these. For tetrodes, we should use a detection method which
84+
# doesn't depend on the channel locations such as std or mad:
8485

85-
recording_good_channels = spre.detect_and_remove_bad_channels(preprocessed_recording)
86+
recording_good_channels = spre.detect_and_remove_bad_channels(
87+
preprocessed_recording,
88+
method = "std",
89+
)
8690

8791
##############################################################################
8892
# It can be a good idea to sort your tetrode data separately for each tetrode.

0 commit comments

Comments
 (0)