Skip to content

Fix channels bug in average_across_direction, and add a test - #3631

Merged
alejoe91 merged 1 commit into
SpikeInterface:mainfrom
cwindolf:avg_chans_bug
Jan 20, 2025
Merged

Fix channels bug in average_across_direction, and add a test#3631
alejoe91 merged 1 commit into
SpikeInterface:mainfrom
cwindolf:avg_chans_bug

Conversation

@cwindolf

Copy link
Copy Markdown
Collaborator

Fixes #3626

channel_indices was unused in the segment's get_traces()! My apologies. This fixes and adds a test.

@alejoe91
alejoe91 merged commit b92e074 into SpikeInterface:main Jan 20, 2025
traces /= self.n_chans_each_pos

return traces
return traces[:, channel_indices]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if channel_indices is None then it is adding one dimmension.
could tou test for this ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh oops, didn't realize that can be None. Will do. I wasn't sure if I can reopen this PR (for the future -- is that possible?) so I did a new one here: #3636

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LFP channels vs AP channels

3 participants