Skip to content
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

Avoid duplicating channel names as property in neo base extractor when all_annotations=True #2845

Conversation

h-mayorquin
Copy link
Collaborator

As in the title.

There is always a channel_names annotation in neo that we can load with all_annotations=True:

https://github.com/h-mayorquin/python-neo/blob/223e22edb917d8ad5ef8aff4fe7197afc414d5f6/neo/rawio/baserawio.py#L282-L293

This PR modifieds the code so when all_annotations=True the property is not duplicated.

Plus, I am changing the name of the property to channel_names because that's how it is neo and I think is more consistent overall. Another option is to instead change the property name to "channel_name" when loaded from neo annotations so we don't duplicate. I think that the first approach is better.

@h-mayorquin h-mayorquin added NEO Problem related to NEO IO extractors Related to extractors module labels May 14, 2024
@h-mayorquin h-mayorquin self-assigned this May 14, 2024
@samuelgarcia samuelgarcia merged commit d66f8eb into SpikeInterface:main May 21, 2024
11 checks passed
@h-mayorquin h-mayorquin deleted the avoid_duplicating_channel_names_as_property branch May 21, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extractors Related to extractors module NEO Problem related to NEO IO
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants