Skip to content

Commit

Permalink
feat: in data ingestion, set peak_sign="both"
Browse files Browse the repository at this point in the history
  • Loading branch information
ttngu207 committed May 29, 2024
1 parent 1ff92dd commit b459709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions element_array_ephys/ephys_no_curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ def make(self, key):
# Find representative channel for each unit
unit_peak_channel: dict[int, np.ndarray] = (
si.ChannelSparsity.from_best_channels(
sorting_analyzer, 1, peak_sign="neg"
sorting_analyzer, 1, peak_sign="both"
).unit_id_to_channel_indices
)
unit_peak_channel: dict[int, int] = {u: chn[0] for u, chn in unit_peak_channel.items()}
Expand Down Expand Up @@ -1249,7 +1249,7 @@ def make(self, key):
# Find representative channel for each unit
unit_peak_channel: dict[int, np.ndarray] = (
si.ChannelSparsity.from_best_channels(
sorting_analyzer, 1, peak_sign="neg"
sorting_analyzer, 1, peak_sign="both"
).unit_id_to_channel_indices
) # {unit: peak_channel_index}
unit_peak_channel = {u: chn[0] for u, chn in unit_peak_channel.items()}
Expand Down

0 comments on commit b459709

Please sign in to comment.