From b2ea39287527fe984e18df481588043d1b55d9aa Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Thu, 15 Oct 2009 13:55:24 +0000 Subject: [PATCH] FIX: Change function name of GetZSpacing to UpdateZSpacing, and fixed bug open dicom --- invesalius/reader/dicom_grouper.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/invesalius/reader/dicom_grouper.py b/invesalius/reader/dicom_grouper.py index 414c7c2..afe87ee 100644 --- a/invesalius/reader/dicom_grouper.py +++ b/invesalius/reader/dicom_grouper.py @@ -92,7 +92,7 @@ class DicomGroup: list_ = sorted(list_, key = lambda dicom:dicom.image.position[axis]) return list_ - def GetZSpacing(self): + def UpdateZSpacing(self): list_ = self.GetSortedList() if (len(list_) > 1): @@ -145,8 +145,8 @@ class PatientGroup: # TODO: Optimize recursion self.AddFile(dicom, index+1) - #Getting the spacing in the Z axis - group.GetZSpacing() + #Getting the spacing in the Z axis + group.UpdateZSpacing() def Update(self): # Ideally, AddFile would be sufficient for splitting DICOM @@ -237,14 +237,14 @@ class PatientGroup: group.AddSlice(current) dict_final[group_counter] = group #Getting the spacing in the Z axis - group.GetZSpacing() + group.UpdateZSpacing() else: group_counter +=1 group = DicomGroup() group.AddSlice(current) dict_final[group_counter] = group #Getting the spacing in the Z axis - group.GetZSpacing() + group.UpdateZSpacing() return dict_final -- libgit2 0.21.2