Commit b83fad5
Benjamin Moody
_digi_bounds: use a dictionary instead of "if" statements.
The _digi_bounds function previously did not handle formats 310, 311,
61, 160, or 8 (which are not supported by wrsamp). Add these formats
to SAMPLE_VALUE_RANGE for consistency even though they're currently
not used.
This will also raise an exception for unknown formats, rather than
silently returning None.1 parent 9c677b5 commit b83fad5
1 file changed
+16
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
65 | 80 | | |
66 | 81 | | |
67 | 82 | | |
| |||
1839 | 1854 | | |
1840 | 1855 | | |
1841 | 1856 | | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
1850 | | - | |
1851 | | - | |
1852 | | - | |
| 1857 | + | |
1853 | 1858 | | |
1854 | 1859 | | |
1855 | 1860 | | |
| |||
0 commit comments