-
Notifications
You must be signed in to change notification settings - Fork 237
using spike_vector on core/check_sortings_equal test
#4282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
using spike_vector on core/check_sortings_equal test
#4282
Conversation
for more information, see https://pre-commit.ci
| def _sorted_spike_vector(SX): | ||
| spikes = SX.to_spike_vector() | ||
| order = np.lexsort((spikes["sample_index"], spikes["unit_index"], spikes["segment_index"])) | ||
| return spikes[order] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this, since to_spike_vector should already return spikes sorted by segment_index + sample_index. Or did you add this to add the sorting by unit_index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pure inattention from me ! I remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oups. this was needed put it back!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vacations will do me good XD
|
@tayheau I think we actually needed the unit_index lex sort after all! The reason is that before we were testing spiketrain-by-spiketrain, so the order didn't matter if we had synchronous spikes. Now with the spike vector representation we need to ensure unit_index is sorted too! Sorry about that! :) |
for more information, see https://pre-commit.ci
Following this todo