Commit d6bfae4f4fcc652bdc5e473a32e436ed980d3d58

Authored by Paulo Henrique Junqueira Amorim
1 parent 8fa4051b

FIX: Problem in the 0051 case anonimyzed

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
invesalius/reader/dicom.py
... ... @@ -1504,8 +1504,11 @@ class Parser():
1504 1504 if ds.FindDataElement(tag):
1505 1505 encoding = str(ds.GetDataElement(tag).GetValue())
1506 1506 if encoding != None:
1507   - return encoding
1508   -
  1507 + #Problem with 0051 anonymized
  1508 + if (encoding.split(":"))[0] == "Loaded":
  1509 + return 'ISO_IR 100'
  1510 + else:
  1511 + return encoding
1509 1512 return 'ISO_IR 100'
1510 1513  
1511 1514  
... ...