Skip to content

Commit b459709

Browse files
committed
feat: in data ingestion, set peak_sign="both"
1 parent 1ff92dd commit b459709

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

element_array_ephys/ephys_no_curation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def make(self, key):
10451045
# Find representative channel for each unit
10461046
unit_peak_channel: dict[int, np.ndarray] = (
10471047
si.ChannelSparsity.from_best_channels(
1048-
sorting_analyzer, 1, peak_sign="neg"
1048+
sorting_analyzer, 1, peak_sign="both"
10491049
).unit_id_to_channel_indices
10501050
)
10511051
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):
12491249
# Find representative channel for each unit
12501250
unit_peak_channel: dict[int, np.ndarray] = (
12511251
si.ChannelSparsity.from_best_channels(
1252-
sorting_analyzer, 1, peak_sign="neg"
1252+
sorting_analyzer, 1, peak_sign="both"
12531253
).unit_id_to_channel_indices
12541254
) # {unit: peak_channel_index}
12551255
unit_peak_channel = {u: chn[0] for u, chn in unit_peak_channel.items()}

0 commit comments

Comments
 (0)