From d6bfae4f4fcc652bdc5e473a32e436ed980d3d58 Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Mon, 4 Jan 2010 16:53:56 +0000 Subject: [PATCH] FIX: Problem in the 0051 case anonimyzed --- invesalius/reader/dicom.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/invesalius/reader/dicom.py b/invesalius/reader/dicom.py index 3f868cc..703d561 100644 --- a/invesalius/reader/dicom.py +++ b/invesalius/reader/dicom.py @@ -1504,8 +1504,11 @@ class Parser(): if ds.FindDataElement(tag): encoding = str(ds.GetDataElement(tag).GetValue()) if encoding != None: - return encoding - + #Problem with 0051 anonymized + if (encoding.split(":"))[0] == "Loaded": + return 'ISO_IR 100' + else: + return encoding return 'ISO_IR 100' -- libgit2 0.21.2