Skip to content

Write multi-character annotation mnemnonics #411

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

Open
bemoody opened this issue Jul 25, 2022 · 0 comments
Open

Write multi-character annotation mnemnonics #411

bemoody opened this issue Jul 25, 2022 · 0 comments

Comments

@bemoody
Copy link
Collaborator

bemoody commented Jul 25, 2022

WFDB annotation mnemonics ("symbols", in wfdb-python parlance) are not limited to a single character. (All of the standard mnemonics are a single character, but a custom mnemonic defined using setannstr can be multiple characters; the only limitation is that it can't contain spaces or control characters.)

Thanks to pull request #404 it is now possible to define custom annotation mnemonics when calling wfdb.wrann. However, custom_triplet_bytes will choke if any of them are not a single character (something that can be passed to ord).

(interpret_defintion_annotations will read multi-character mnemonics correctly, though note that it has the same problem as rdheader used to have: it uses findall when it should be using match or fullmatch.)

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

No branches or pull requests

1 participant