From d0d68211fc18b167018c447c5c30300b29be2f34 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Wed, 7 Aug 2013 14:23:21 -0300 Subject: [PATCH] Replacing , to . in some dicom fields --- invesalius/reader/dicom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invesalius/reader/dicom.py b/invesalius/reader/dicom.py index ad80bf8..d3cc0e6 100644 --- a/invesalius/reader/dicom.py +++ b/invesalius/reader/dicom.py @@ -443,7 +443,7 @@ class Parser(): DICOM standard tag (0x0020, 0x0032) was used. """ try: - data = self.data_image[str(0x020)][str(0x032)] + data = self.data_image[str(0x020)][str(0x032)].replace(",", ".") except(KeyError): return "" if (data): @@ -509,7 +509,7 @@ class Parser(): DICOM standard tag (0x0028, 0x0030) was used. """ try: - data = self.data_image[str(0x0028)][str(0x0030)] + data = self.data_image[str(0x0028)][str(0x0030)].replace(",", ".") except(KeyError): return "" if (data): @@ -886,7 +886,7 @@ class Parser(): Critical DICOM tag (0x0020,0x0037). Cannot be edited. """ try: - data = self.data_image[str(0x0020)][str(0x0037)] + data = self.data_image[str(0x0020)][str(0x0037)].replace(",", ".") except(KeyError): return [1.0, 0.0, 0.0, 0.0, 1.0, 0.0] @@ -1352,7 +1352,7 @@ class Parser(): DICOM standard tag (0x0018,0x0050) was used. """ try: - data = self.data_image[str(0x0018)][str(0x0050)] + data = self.data_image[str(0x0018)][str(0x0050)].replace(",", ".") except(KeyError): return 0 if (data): -- libgit2 0.21.2