Skip to content

Commit eba9f68

Browse files
authored
Merge pull request #3178 from alejoe91/fix-pca-components
Fix pca transform error
2 parents 60bd1e6 + caefa4e commit eba9f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spikeinterface/postprocessing/principal_component.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def _transform_waveforms(self, spikes, waveforms, pca_model, progress_bar):
493493
try:
494494
proj = pca_model.transform(wfs[:, :, wf_ind])
495495
pca_projection[:, :, wf_ind][spike_mask, :] = proj
496-
except NotFittedError as e:
496+
except:
497497
# this could happen if len(wfs) is less then n_comp for a channel
498498
project_on_non_fitted = True
499499
if project_on_non_fitted:

0 commit comments

Comments
 (0)