Skip to content

Make NumpySorting.from_unit_dict docs and code consistent#4382

Merged
chrishalcrow merged 2 commits intoSpikeInterface:mainfrom
alejoe91:fix-numpysorting-constructor
Feb 11, 2026
Merged

Make NumpySorting.from_unit_dict docs and code consistent#4382
chrishalcrow merged 2 commits intoSpikeInterface:mainfrom
alejoe91:fix-numpysorting-constructor

Conversation

@alejoe91
Copy link
Member

Fixes #4375

@pas-calc I think this makes it unambiguous :)

I think it's simple enough for users to do the time to samples conversion externally, without making the function more complex than it should be

@alejoe91 alejoe91 added the core Changes to core module label Feb 10, 2026
@pas-calc
Copy link
Contributor

Yes this looks reasonable and clear. I was initially running this function assuming it takes "time" instead of "samples" and realized why it returned wrong result by looking at the function definition.

@alejoe91 alejoe91 added this to the 0.104.0 milestone Feb 10, 2026
Copy link
Member

@chrishalcrow chrishalcrow left a comment

Choose a reason for hiding this comment

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

Much betta!

@chrishalcrow chrishalcrow merged commit 64bfba4 into SpikeInterface:main Feb 11, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NumpySorting.from_unit_dict() spike samples instead of times

3 participants