We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4034a2c commit 13d9c56Copy full SHA for 13d9c56
1 file changed
src/spikeinterface/extractors/neuropixels_utils.py
@@ -52,10 +52,8 @@ def get_neuropixels_sample_shifts(
52
53
sample_shifts = np.zeros_like(adc_indices)
54
55
- for a in np.unique(adc_indices):
56
- channel_indices = np.where(adc_indices == a)[0]
57
- sample_shifts[channel_indices] = np.arange(len(channel_indices)) / num_cycles
58
-
+ for adc_index in adc_indices:
+ sample_shifts[adc_indices == adc_index] = np.arange(num_channels_per_adc) / num_cycles
59
return sample_shifts
60
61
0 commit comments