cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
319 stars 157 forks source link

Incorrect channel positions in TraceImageView? #1029

Open TomBugnon opened 4 years ago

TomBugnon commented 4 years ago

Hi,

I'm using phy==2.0b1 on kilosort2 output for neuropixels data, and the ordering of channels in the TraceImageView seems incorrect. It appears as if the channel positions were not used to reorder the traces when generating the image (since the bank/probe-location changes back and forth every two channel):

image

Note that channels are ordered correctly on the TraceView: image

And the channel positions stored in both TraceView.channel_positions and TraceImageView.channel_positions seem to be correct. Any idea what might be going on, and whether I'm missing something? Thanks a lot! Tom