Commit 8098338
Benjamin Moody
rdrecord: allow smooth_frames=False for multi-segment records.
When reading a multi-segment, multi-frequency record, we want to have
the option of reading each signal at its original sampling frequency,
which requires using smooth_frames=False. Previously this simply
wasn't allowed, either with or without multi-to-single conversion.
To do this, we need to ensure each segment is loaded in the
appropriate (smooth or non-smooth) mode (which formerly would have
failed if certain segments *didn't* contain multiple samples per
frame.)
After loading the segments, we must invoke multi_to_single, if
desired, in the appropriate mode.1 parent d330a4a commit 8098338
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | 513 | | |
521 | 514 | | |
522 | 515 | | |
| |||
4226 | 4219 | | |
4227 | 4220 | | |
4228 | 4221 | | |
| 4222 | + | |
4229 | 4223 | | |
4230 | 4224 | | |
4231 | 4225 | | |
| |||
4242 | 4236 | | |
4243 | 4237 | | |
4244 | 4238 | | |
4245 | | - | |
| 4239 | + | |
| 4240 | + | |
| 4241 | + | |
4246 | 4242 | | |
4247 | 4243 | | |
4248 | 4244 | | |
| |||
0 commit comments