diff --git a/invesalius/reader/dicom.py b/invesalius/reader/dicom.py index 24695cc..5b8eaec 100644 --- a/invesalius/reader/dicom.py +++ b/invesalius/reader/dicom.py @@ -1142,6 +1142,7 @@ class Parser(): """ data = self.vtkgdcm_reader.GetMedicalImageProperties()\ .GetPatientName() + if (data): name = data.strip() encoding = self.GetEncoding() @@ -1510,7 +1511,12 @@ class Parser(): ds = self.gdcm_reader.GetFile().GetDataSet() if ds.FindDataElement(tag): encoding = str(ds.GetDataElement(tag).GetValue()) - if encoding != None: + + print '_'+encoding+'_' + print type(encoding) + + if encoding != None and encoding != "None": + print 'ENTROU......' #Problem with 0051 anonymized if (encoding.split(":"))[0] == "Loaded": return 'ISO_IR 100' -- libgit2 0.21.2