Conversation
for more information, see https://pre-commit.ci
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
|
Where is the best place to list the suffix mappings @larsoner? The WFBD library mentions a few that I would also like to include besides |
for more information, see https://pre-commit.ci
|
Okay, everything should be good then. Should I add tests and include a citation for the library somewhere? @larsoner |
for more information, see https://pre-commit.ci
Sure, it would be good to add it to |
|
Would you mind cutting a new release for the testing data? @larsoner I used the data from https://physionet.org/content/chbmit/1.0.0/
Added a PR here: |
for more information, see https://pre-commit.ci
You need to tell the CIs (via MNE-Python) to actually use the newest version of the testing dataset. See: |
|
I see, thank you. The testing data PR was merged before I updated the |
|
Whoops I missed that! Will fix both and cut a new version |
|
Done... use 0.158 🤦 |
|
@withmywoessner do you have time to come back to this or would it help if someone pushed commits? |
|
Yes, I can do this! Sorry about that! I have been dealing with NIH nonsense this year. |

Reference issue (if any)
Fixes #12660.
What does this implement/fix?
Adds the ability to read WaveForm Database (wfdb) annotations using the already existing library. My proposed API adds two new parameters to
mne.read_annotations()fmtandsuffix.fmtandsuffixare used in combination to read an annotation whose file suffix is not strictly defined.If
mne.annotations(fmt='wfbd'...)is called with no suffix, then the function will check to see if the suffix matches a default list of suffixes.If
mne.annotations(fmt='wfbd', suffix='seizures'...)is called, then the function will bypass the default list of suffixes.