From b45970974df001319a4ebae182bf291313f5e39a Mon Sep 17 00:00:00 2001 From: Thinh Nguyen Date: Wed, 29 May 2024 16:16:21 -0500 Subject: [PATCH] feat: in data ingestion, set peak_sign="both" --- element_array_ephys/ephys_no_curation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/element_array_ephys/ephys_no_curation.py b/element_array_ephys/ephys_no_curation.py index 142f350b..8eadba49 100644 --- a/element_array_ephys/ephys_no_curation.py +++ b/element_array_ephys/ephys_no_curation.py @@ -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()} @@ -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()}