-
Notifications
You must be signed in to change notification settings - Fork 308
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
Subelements of the symbol field must be strings of length 1 to 3 error #201
Comments
Hey @MishalJasmine, thanks for posting your issues here! You are using custom labels? If so, this snippet here indicates that being an instance of wfdb-python/wfdb/io/annotation.py Lines 294 to 295 in 0d4b5a6
Maybe these errors should be separated to provide more clarity? An example
Does this help? If not, I need some more information about your |
I think I understand.. let me check that out.. |
I tried creating a annotation file locally. These labels are not custom labels. The labels that I have used are N, S, F , Q and V which are included in the PhysioNet. The error that I am getting now is
The type of symbols and labels is
Can I get some help on this. |
Hey @MishalJasmine, I need to know what your |
label and qrs is the output of my model. It is basically a list of all the symbols and the indices of the QRS peaks that I need to add in my annotation file. |
What is the traceback for the error? I am trying to find the source of it now. |
|
Fixes incorrect addition of two binary number causing a TypeError from adding two incompatible types. Fixes #201.
Okay, I think this attached pull request should fix the issue you are having. There was an error in the way that two binary numbers were being added which was causing your error. Feel free to update me if this fix doesn't help out! Thanks for posting! |
Actually, this just seems to open another error.... I really need some kind of example of your labels that cause the error so I know whether or not I fixed it and maintains the current functionality as well. |
I am using wrann to write the symbols and the indices into the reference annotation file. I am getting this error
Subelements of the symbol field must be strings of length 1 to 3
for the symbols list. I checked the type of the list elements usingfor i in range(0,len(labels)):
print(isinstance(labels[i], str_types))
and the result is True for all the elements of the list. If I use a dummy symbol list I am able to write to the annotation file. Could you tell me what is it that I am doing wrong.The text was updated successfully, but these errors were encountered: