Commit 15ab87a
committed
Merge pull request #125 from matthew-brett/pydicom-0p7-fixes
BF: make compatible with pydicom 0.9.7
Pydicom 0.9.7 returns some fields as Python Decimals, when previously
they were floats. This causes a mess when using values in an array,
because the array becomes objects rather than floats, and, well, it
doesn't go well. Tests pass for me with pydicom 0.9.5 through 0.9.7
with these changes.1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
183 | 188 | | |
184 | 189 | | |
185 | 190 | | |
| |||
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
201 | | - | |
| 206 | + | |
| 207 | + | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| |||
558 | 564 | | |
559 | 565 | | |
560 | 566 | | |
561 | | - | |
| 567 | + | |
562 | 568 | | |
563 | 569 | | |
564 | 570 | | |
565 | 571 | | |
566 | 572 | | |
567 | 573 | | |
| 574 | + | |
| 575 | + | |
568 | 576 | | |
569 | 577 | | |
570 | 578 | | |
| |||
0 commit comments