Commit d6bfae4f4fcc652bdc5e473a32e436ed980d3d58
1 parent
8fa4051b
Exists in
master
and in
6 other branches
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,8 +1504,11 @@ class Parser(): | ||
1504 | if ds.FindDataElement(tag): | 1504 | if ds.FindDataElement(tag): |
1505 | encoding = str(ds.GetDataElement(tag).GetValue()) | 1505 | encoding = str(ds.GetDataElement(tag).GetValue()) |
1506 | if encoding != None: | 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 | return 'ISO_IR 100' | 1512 | return 'ISO_IR 100' |
1510 | 1513 | ||
1511 | 1514 |