Skip to content

Commit 665b0e7

Browse files
authored
Fix: Align CompressedBinaryIBLExtractor with updated get_neuropixels_sample_shifts s… (#4477)
1 parent 7a23584 commit 665b0e7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/spikeinterface/extractors/cbin_ibl.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,7 @@ def __init__(self, folder_path=None, load_sync_channel=False, stream_name="ap",
106106
else:
107107
self.set_probe(probe, in_place=True)
108108

109-
# load num_channels_per_adc depending on probe type
110-
ptype = probe.annotations["probe_type"]
111-
112-
if ptype in [21, 24]: # NP2.0
113-
num_channels_per_adc = 16
114-
else: # NP1.0
115-
num_channels_per_adc = 12
116-
sample_shifts = get_neuropixels_sample_shifts_from_probe(probe, num_channels_per_adc)
109+
sample_shifts = get_neuropixels_sample_shifts_from_probe(probe)
117110
self.set_property("inter_sample_shift", sample_shifts)
118111

119112
self._kwargs = {

0 commit comments

Comments
 (0)