From 281d3366be9fb26d91717c81cd736bd89c1dcbbe Mon Sep 17 00:00:00 2001 From: miketrumpis Date: Wed, 22 Feb 2017 08:46:59 -0500 Subject: [PATCH] BF: Skip PCA projection and results storing for spike-less groups --- klusta/traces/spikedetekt.py | 2 ++ 1 file changed, 2 insertions(+) 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']