You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When saving annotations, I get this error in wrann:
File "C:\Users\######\venv\Lib\site-packages\wfdb\io\annotation.py", line 943, in wr_ann_file
if fs_bytes == [] and cl_bytes == []:
^^^^^^^^^^^^^^
ValueError: operands could not be broadcast together with shapes (28,) (0,)
This error is raised when fs_bytes (or cl_bytes) is a numpy ndarray that is compared to the empty list.
A possible solution may be, to cast the arrays to lists and then compare them:
if list(fs_bytes) == [] and list(cl_bytes) == []:
(WFDB Version: 4.1.2, Python 3.11)
The text was updated successfully, but these errors were encountered:
When saving annotations, I get this error in wrann:
This error is raised when
fs_bytes
(orcl_bytes
) is a numpy ndarray that is compared to the empty list.A possible solution may be, to cast the arrays to lists and then compare them:
if list(fs_bytes) == [] and list(cl_bytes) == []:
(WFDB Version: 4.1.2, Python 3.11)
The text was updated successfully, but these errors were encountered: