Commit d6c3efa5f0c947a5fc9a4479e74b729058af098b

Authored by Paulo Henrique Junqueira Amorim
1 parent 5f522db4

FIX: Returning ImageSeriesNumber string with None value.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/reader/dicom.py
... ... @@ -337,7 +337,7 @@ class Parser():
337 337 ds = self.gdcm_reader.GetFile().GetDataSet()
338 338 if ds.FindDataElement(tag):
339 339 data = str(ds.GetDataElement(tag).GetValue())
340   - if (data) and (data != '""'):
  340 + if (data) and (data != '""') and (data != "None"):
341 341 return int(data)
342 342 return ""
343 343  
... ...