Commit a71f4599e7d0fdd3a153d4584261ea43d49c8afd

Authored by Paulo Henrique Junqueira Amorim
1 parent 36f5965b

FIX: Bug reported by Pedro Noritomi, 11 march 2010, at CTI. It occured while imp…

…orting DICOM files acquired at FMVZ of UNESP, in Botucatu. FIX #230
Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
invesalius/reader/dicom.py
... ... @@ -1142,6 +1142,7 @@ class Parser():
1142 1142 """
1143 1143 data = self.vtkgdcm_reader.GetMedicalImageProperties()\
1144 1144 .GetPatientName()
  1145 +
1145 1146 if (data):
1146 1147 name = data.strip()
1147 1148 encoding = self.GetEncoding()
... ... @@ -1510,7 +1511,12 @@ class Parser():
1510 1511 ds = self.gdcm_reader.GetFile().GetDataSet()
1511 1512 if ds.FindDataElement(tag):
1512 1513 encoding = str(ds.GetDataElement(tag).GetValue())
1513   - if encoding != None:
  1514 +
  1515 + print '_'+encoding+'_'
  1516 + print type(encoding)
  1517 +
  1518 + if encoding != None and encoding != "None":
  1519 + print 'ENTROU......'
1514 1520 #Problem with 0051 anonymized
1515 1521 if (encoding.split(":"))[0] == "Loaded":
1516 1522 return 'ISO_IR 100'
... ...