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

Rework and harmonize the channel selection 'pick' API and expose public functions #12341

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mscheltienne
Copy link
Member

@mscheltienne mscheltienne commented Jan 9, 2024

To start the ball rolling on #11913
I think that would represent the main structure of the proposal. The type-hints are present to detail the structure, they can be retained in the final version or removed (note: the type-hint for slice is likely incorrect as it's not generic and thus we can not specify the type-hints of start, stop and step which should all be integers for those functions).

To minimize the difference, I've added the new proposed structure to a private mne._fiff._pick.py file. I propose to reverse the order pick.py <-> _pick.py to keep all the public non-legacy functions in a file without underscore (which includes some functions from the current mne._fiff.pick.py file).

I'm still not entirely convince this is the best structure, thus any feedback is welcome :)

@mscheltienne mscheltienne marked this pull request as draft January 9, 2024 17:28
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.

None yet

1 participant