Commit 3e84119
Benjamin Moody
_rd_segment: always honor the smooth_frames parameter.
This function can return signal data in either of two formats:
- "smooth" (a two-dimensional array, where x[t,s] is sample t of
signal s)
- "non-smooth" (a list of one-dimensional arrays, where x[s][t] is
sample t of signal s)
Previously, _rd_segment would use "smooth" format if
'sum(samps_per_frame) == n_sig', regardless of 'smooth_frames'. This
makes little sense, since the caller needs to know what type of return
value to expect. Instead, the format should be determined solely by
the 'smooth_frames' parameter.
(In this case, the only caller of _rd_segment is
wfdb.io.record.rdrecord.)1 parent 8f4fd87 commit 3e84119
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
903 | | - | |
| 903 | + | |
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
926 | | - | |
927 | | - | |
| 925 | + | |
| 926 | + | |
928 | 927 | | |
929 | 928 | | |
930 | 929 | | |
| |||
996 | 995 | | |
997 | 996 | | |
998 | 997 | | |
999 | | - | |
| 998 | + | |
1000 | 999 | | |
1001 | 1000 | | |
1002 | 1001 | | |
| |||
0 commit comments