From 32c7de518214bdeeba5a0c274ca5528344933cf5 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Mon, 23 Apr 2012 18:41:55 +0000 Subject: [PATCH] FIX: The case 2305 from Promed has 2 encodings. So it is necessary to split it and get one of them, in this case, the first one --- invesalius/reader/dicom_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/reader/dicom_reader.py b/invesalius/reader/dicom_reader.py index 533587f..a9e2e80 100644 --- a/invesalius/reader/dicom_reader.py +++ b/invesalius/reader/dicom_reader.py @@ -119,7 +119,7 @@ class LoadDicom: tag = gdcm.Tag(0x0008, 0x0005) ds = reader.GetFile().GetDataSet() if ds.FindDataElement(tag): - encoding_value = str(ds.GetDataElement(tag).GetValue()) + encoding_value = str(ds.GetDataElement(tag).GetValue()).split('\\')[0] if encoding_value.startswith("Loaded"): encoding = "ISO_IR 100" -- libgit2 0.21.2