Commit 83f6862e76b363865c5f6511b2e1d527ffb5fe07
1 parent
ab07674e
Exists in
master
and in
6 other branches
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 | 356 | |
357 | 357 | # Create imagedata |
358 | 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 | 362 | zspacing = dicom_group.zspacing |
360 | 363 | imagedata = utils.CreateImageData(filelist, zspacing) |
361 | 364 | ... | ... |