From 204d315c5040e41a6d2eb04eacc97fbc94e0213a Mon Sep 17 00:00:00 2001 From: hayleybounds Date: Fri, 27 Mar 2026 12:52:27 +0000 Subject: [PATCH] Fix: Align IBL extractor with updated get_neuropixels_sample_shifts signature The CompressedBinaryIblExtractor was still using a multi-argument call to get_neuropixels_sample_shifts_from_probe, which now only accepts a single probe argument. Also removes issues with missing probe_type annotation by removing redundant num_channels_per_adc calculation --- src/spikeinterface/extractors/cbin_ibl.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/spikeinterface/extractors/cbin_ibl.py b/src/spikeinterface/extractors/cbin_ibl.py index 4b222d7e59..2a53b999e3 100644 --- a/src/spikeinterface/extractors/cbin_ibl.py +++ b/src/spikeinterface/extractors/cbin_ibl.py @@ -106,14 +106,7 @@ def __init__(self, folder_path=None, load_sync_channel=False, stream_name="ap", else: self.set_probe(probe, in_place=True) - # load num_channels_per_adc depending on probe type - ptype = probe.annotations["probe_type"] - - if ptype in [21, 24]: # NP2.0 - num_channels_per_adc = 16 - else: # NP1.0 - num_channels_per_adc = 12 - sample_shifts = get_neuropixels_sample_shifts_from_probe(probe, num_channels_per_adc) + sample_shifts = get_neuropixels_sample_shifts_from_probe(probe) self.set_property("inter_sample_shift", sample_shifts) self._kwargs = {