diff --git a/invesalius/reader/dicom_reader.py b/invesalius/reader/dicom_reader.py index d82622b..54e3d41 100644 --- a/invesalius/reader/dicom_reader.py +++ b/invesalius/reader/dicom_reader.py @@ -51,7 +51,9 @@ def SelectLargerDicomGroup(patient_group): group_list = patient.GetGroups() for group in group_list: if group.nslices > maxslices: + maxslices = group.nslices larger_group = group + return larger_group def SortFiles(filelist, dicom): -- libgit2 0.21.2