Commit 8f4fd87
Benjamin Moody
_rd_dat_signals: 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_dat_signals 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_dat_signals is _rd_segment, and
the only caller of _rd_segment is wfdb.io.record.rdrecord.)1 parent 0d41603 commit 8f4fd87
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1089 | 1089 | | |
1090 | 1090 | | |
1091 | 1091 | | |
1092 | | - | |
| 1092 | + | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
| 1104 | + | |
| 1105 | + | |
1107 | 1106 | | |
1108 | 1107 | | |
1109 | 1108 | | |
| |||
1212 | 1211 | | |
1213 | 1212 | | |
1214 | 1213 | | |
1215 | | - | |
| 1214 | + | |
1216 | 1215 | | |
1217 | 1216 | | |
1218 | 1217 | | |
| |||
0 commit comments