From d6c3efa5f0c947a5fc9a4479e74b729058af098b Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Thu, 15 Oct 2009 14:35:17 +0000 Subject: [PATCH] FIX: Returning ImageSeriesNumber string with None value. --- 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 8bf57c1..1c60e39 100644 --- a/invesalius/reader/dicom.py +++ b/invesalius/reader/dicom.py @@ -337,7 +337,7 @@ class Parser(): ds = self.gdcm_reader.GetFile().GetDataSet() if ds.FindDataElement(tag): data = str(ds.GetDataElement(tag).GetValue()) - if (data) and (data != '""'): + if (data) and (data != '""') and (data != "None"): return int(data) return "" -- libgit2 0.21.2