Skip to content

Commit

Permalink
Fixed bug in new PCA code.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossant committed Nov 6, 2014
1 parent 1140196 commit e2ce1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spikedetekt2/core/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def save_features(experiment, **prm):
else:
# We take the masks in order to compute the PCs only on
# the unmasked spikes, for each channel.
masks = spikes.features_masks[:,::npcs,1] # (nspikes, nchannels)
masks = spikes.features_masks[::step,::npcs,1] # (nspikes, nchannels)
# Compute the PCs.
pcs = compute_pcs(waveforms_subset, npcs=npcs, masks=masks)

Expand Down

0 comments on commit e2ce1f5

Please sign in to comment.