mne-tools / mne-tools/mne-python

Annotations to_data_frame with all the options similar to Raw.to_data_frame

Open
#9,997 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ENH
Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Description

Describe the new feature or enhancement

Annotations has a convenience function to go to a data frame, and so does Raw. However, Raw has significantly more flexibility and options.

Now that Annotations also has channel picks, almost all the options that Raw.to_data_frame has can be also added to Annotations.

Describe your proposed implementation

Implement Annotations.to_data_frame() with parameters of Raw.to_data_frame().

Additional comments

See current Raw.to_data_frame(): https://mne.tools/stable/generated/mne.io.Raw.html#mne.io.Raw

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the current Annotations convenience function with Raw.to_data_frame(), using the linked Raw API documentation as the reference. Done means Annotations.to_data_frame() supports the parameters available on Raw.to_data_frame(), including the options enabled by annotation channel picks; the issue names no implementation files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.