Commit 5f95b3a
committed
BUG: Fix XML loading to convert numeric VR values to proper Python types
pydicom 3.0+ requires numeric VR types (US, SS, UL, SL, FD, FL) to be actual integers/floats, not strings. Updated _load_xml_dataset to convert string values from XML to the appropriate Python type based on VR.
This fixes test_load_xml_response which was failing with 'A value of type str cannot be assigned to a tag with VR US'.1 parent b5540b7 commit 5f95b3a
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
77 | 87 | | |
78 | 88 | | |
79 | 89 | | |
| |||
0 commit comments