Author: bugman Date: Tue Jun 14 16:22:13 2011 New Revision: 12996 URL: http://svn.gna.org/viewcvs/relax?rev=12996&view=rev Log: Fixed sync_ds() for the swapped columns. Modified: 1.3/gui/components/spectrum.py Modified: 1.3/gui/components/spectrum.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/components/spectrum.py?rev=12996&r1=12995&r2=12996&view=diff ============================================================================== --- 1.3/gui/components/spectrum.py (original) +++ 1.3/gui/components/spectrum.py Tue Jun 14 16:22:13 2011 @@ -713,8 +713,8 @@ for i in range(self.num_rows): # The cell data. file_name = str(self.grid.GetCellValue(i, 0)) - ncyc = str(self.grid.GetCellValue(i, 1)) - relax_time = str(self.grid.GetCellValue(i, 2)) + relax_time = str(self.grid.GetCellValue(i, 1)) + ncyc = str(self.grid.GetCellValue(i, 2)) # No data, so stop. if file_name == '' and ncyc == '': @@ -744,13 +744,13 @@ if hasattr(self.data, 'file_list'): self.grid.SetCellValue(i, 0, str(self.data.file_list[i])) + # The relaxation time. + if hasattr(self.data, 'relax_times'): + self.grid.SetCellValue(i, 1, str(self.data.relax_times[i])) + # The number of cycles. if hasattr(self.data, 'ncyc'): - self.grid.SetCellValue(i, 1, str(self.data.ncyc[i])) - - # The relaxation time. - if hasattr(self.data, 'relax_times'): - self.grid.SetCellValue(i, 2, str(self.data.relax_times[i])) + self.grid.SetCellValue(i, 2, str(self.data.ncyc[i])) # Update the grid. self.update_grid()