Skip to content

Commit 70ff1fe

Browse files
committed
Fixes return_res error MIT-LCP#230
Fixes error when using the return_res parameter which can sometimes modify the format in which the data from file is read. This oftentimes creates illogical arrays which can't be recovered into the proper values or even the proper shape. Fortunately, the removal of this does not significantly affect the runtime of the function even for large arrays. Fixes MIT-LCP#230.
1 parent 7264c45 commit 70ff1fe

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

wfdb/io/_signal.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -947,10 +947,6 @@ def _rd_segment(file_name, dir_name, pn_dir, fmt, n_sig, sig_len, byte_offset,
947947
if ignore_skew:
948948
skew = [0]*n_sig
949949

950-
# Change format if requested
951-
if return_res != 64:
952-
fmt = len(fmt) * [str(return_res)]
953-
954950
# Get the set of dat files, and the
955951
# channels that belong to each file.
956952
file_name, datchannel = describe_list_indices(file_name)

0 commit comments

Comments
 (0)