Commit bee27cf24f081bdd8647f55dca0474016e0a2de1
1 parent
a13ab1bd
Exists in
master
and in
68 other branches
ENC: Added support to DICOM files which use string 'None' on SeriesNumber
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/reader/dicom.py
... | ... | @@ -329,7 +329,7 @@ class Parser(): |
329 | 329 | ds = self.gdcm_reader.GetFile().GetDataSet() |
330 | 330 | if ds.FindDataElement(tag): |
331 | 331 | data = str(ds.GetDataElement(tag).GetValue()) |
332 | - if (data): | |
332 | + if (data) and (data != 'None'): | |
333 | 333 | return int(data) |
334 | 334 | return None |
335 | 335 | ... | ... |