From 4c174d5889ea9a0c455a25e04c5ab7f7f061a574 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Tue, 25 Aug 2009 17:20:20 +0000 Subject: [PATCH] FIX: using float instead of eval because number leading with 00 is recognized as octal and can raise a exception when have a 8 in the number --- invesalius/reader/dicom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/reader/dicom.py b/invesalius/reader/dicom.py index e8abdf2..1b9f225 100644 --- a/invesalius/reader/dicom.py +++ b/invesalius/reader/dicom.py @@ -225,7 +225,7 @@ class Parser(): # If multiple values are present for the "Window Center" # we choose only one. As this should be paired to "Window # Width", it is set based on WL_PRESET - value_list = [eval(value) for value in data.split('\\')] + value_list = [float(value) for value in data.split('\\')] if multiple: return value_list else: -- libgit2 0.21.2