Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix documentation of the internal variable 'filebytes'.
This variable contains the complete contents of the input annotation
file, as a numpy array of pairs of bytes (shape=(N,2), dtype='uint8').
It is neither a str nor a bytes object.
  • Loading branch information
Benjamin Moody committed Sep 30, 2021
commit 04ae55fc8f3e3c687224fd000d33feda94885769
12 changes: 6 additions & 6 deletions wfdb/io/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1748,8 +1748,8 @@ def load_byte_pairs(record_name, extension, pn_dir):

Returns
-------
filebytes : str
The input filestream converted to bytes.
filebytes : ndarray
The input filestream converted to an Nx2 array of unsigned bytes.

"""
# local file
Expand All @@ -1769,8 +1769,8 @@ def proc_ann_bytes(filebytes, sampto):

Parameters
----------
filebytes : str
The input filestream converted to bytes.
filebytes : ndarray
The input filestream converted to an Nx2 array of unsigned bytes.
sampto : int
The maximum sample number for annotations to be returned.

Expand Down Expand Up @@ -1852,8 +1852,8 @@ def proc_core_fields(filebytes, bpi):

Parameters
----------
filebytes : str
The input filestream converted to bytes.
filebytes : ndarray
The input filestream converted to an Nx2 array of unsigned bytes.
bpi : int
The index to start the conversion.

Expand Down