Skip to content

wrann not working with only label_store set in Annotation #260

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

Closed
JulianWinter1124 opened this issue Oct 23, 2020 · 1 comment · Fixed by #279
Closed

wrann not working with only label_store set in Annotation #260

JulianWinter1124 opened this issue Oct 23, 2020 · 1 comment · Fixed by #279

Comments

@JulianWinter1124
Copy link

Hi I think the wrann method inside wfdb.io.Annotation might not be working as intended right now.

When I try to write a new annotation with only the label_store field set, I get a Nonetype error inside wfdb.io.Annotation.calc_core_bytes (line 930) where it says data_bytes.append(field2bytes('samptype', [sampdiff[i], self.symbol[i]])), because self.symbol is None (and thus unsubscriptable).

From the documentation it should however also be possible to only use label_store as a field in my Annotation.

@Tomwhiting1987
Copy link

I'm also getting exactly the same error when I put in a label store array instead of a symbol array. I thought it was something silly I was doing! Is it possible to fix this? It does suggest in the documentation that this should work.

Lucas-Mc added a commit that referenced this issue Feb 23, 2021
Fixes NoneType error in wfdb.io.wrann when using label_store instead of symbol #260
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants