Commit a14af14
Benjamin Moody
rdrecord: correctly infer length for multi-frequency records.
If the header file does not specify the record length, it must be
inferred from the size of the signal file (dividing the data length by
the number of samples per frame.)
Previously, this calculation assumed that tsamps_per_frame == n_sig,
which is not necessarily the case. Correctly calculate the total spf
for the first signal file and use that as the divisor, rather than the
number of signals. Rename the "n_sig" parameter of _infer_sig_len to
tsamps_per_frame accordingly.1 parent 408ad93 commit a14af14
2 files changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2059 | 2059 | | |
2060 | 2060 | | |
2061 | 2061 | | |
2062 | | - | |
| 2062 | + | |
2063 | 2063 | | |
2064 | 2064 | | |
2065 | 2065 | | |
| |||
2069 | 2069 | | |
2070 | 2070 | | |
2071 | 2071 | | |
2072 | | - | |
2073 | | - | |
| 2072 | + | |
| 2073 | + | |
2074 | 2074 | | |
2075 | 2075 | | |
2076 | 2076 | | |
| |||
2081 | 2081 | | |
2082 | 2082 | | |
2083 | 2083 | | |
2084 | | - | |
| 2084 | + | |
2085 | 2085 | | |
2086 | 2086 | | |
2087 | 2087 | | |
2088 | | - | |
| 2088 | + | |
2089 | 2089 | | |
2090 | 2090 | | |
2091 | 2091 | | |
| |||
2094 | 2094 | | |
2095 | 2095 | | |
2096 | 2096 | | |
2097 | | - | |
| 2097 | + | |
2098 | 2098 | | |
2099 | 2099 | | |
2100 | 2100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3441 | 3441 | | |
3442 | 3442 | | |
3443 | 3443 | | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
| 3449 | + | |
| 3450 | + | |
| 3451 | + | |
| 3452 | + | |
3444 | 3453 | | |
3445 | 3454 | | |
3446 | | - | |
| 3455 | + | |
3447 | 3456 | | |
3448 | 3457 | | |
3449 | 3458 | | |
| |||
0 commit comments