Commit 83f6862e76b363865c5f6511b2e1d527ffb5fe07

Authored by tfmoraes
1 parent ab07674e

FIX: A workaround to eliminate ZeroDivisionError in import, but there are some i…

…ncorrect reconstructions
Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
invesalius/control.py
@@ -356,6 +356,9 @@ class Controller(): @@ -356,6 +356,9 @@ class Controller():
356 356
357 # Create imagedata 357 # Create imagedata
358 filelist = dicom_group.GetFilenameList() 358 filelist = dicom_group.GetFilenameList()
  359 + if not filelist:
  360 + print ">Not used the IPPSorter"
  361 + filelist = [i.image.file for i in dicom_group.GetHandSortedList()]
359 zspacing = dicom_group.zspacing 362 zspacing = dicom_group.zspacing
360 imagedata = utils.CreateImageData(filelist, zspacing) 363 imagedata = utils.CreateImageData(filelist, zspacing)
361 364