diff --git a/klusta/traces/spikedetekt.py b/klusta/traces/spikedetekt.py index 829da1b..22c64ed 100644 --- a/klusta/traces/spikedetekt.py +++ b/klusta/traces/spikedetekt.py @@ -653,6 +653,8 @@ def step_extract(self, n_samples=None, # self._store.delete(name='components', chunk_key=chunk.key) # split: {group: {'spike_samples': ..., 'waveforms':, 'masks':}} for group, out in split.items(): + if pcs[group] is None: + continue out['features'] = self.features(out['waveforms'], pcs[group]) # Checking that spikes are increasing. spikes = out['spike_samples']