Commit 32c7de518214bdeeba5a0c274ca5528344933cf5
1 parent
b42ffc1c
Exists in
master
and in
67 other branches
FIX: The case 2305 from Promed has 2 encodings. So it is necessary to split it a…
…nd get one of them, in this case, the first one
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/reader/dicom_reader.py
| ... | ... | @@ -119,7 +119,7 @@ class LoadDicom: |
| 119 | 119 | tag = gdcm.Tag(0x0008, 0x0005) |
| 120 | 120 | ds = reader.GetFile().GetDataSet() |
| 121 | 121 | if ds.FindDataElement(tag): |
| 122 | - encoding_value = str(ds.GetDataElement(tag).GetValue()) | |
| 122 | + encoding_value = str(ds.GetDataElement(tag).GetValue()).split('\\')[0] | |
| 123 | 123 | |
| 124 | 124 | if encoding_value.startswith("Loaded"): |
| 125 | 125 | encoding = "ISO_IR 100" | ... | ... |