Author: bugman Date: Fri Jul 1 13:33:41 2011 New Revision: 13357 URL: http://svn.gna.org/viewcvs/relax?rev=13357&view=rev Log: Added support for old save files in the Peak_intensity.sync_ds() method. 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=13357&r1=13356&r2=13357&view=diff ============================================================================== --- 1.3/gui/components/spectrum.py (original) +++ 1.3/gui/components/spectrum.py Fri Jul 1 13:33:41 2011 @@ -733,6 +733,14 @@ # Loop over the rows. for i in range(self.num_rows): + # Old save file support. + if not hasattr(self.data, 'file_list'): + self.data.file_list = [] + if not hasattr(self.data, 'ncyc'): + self.data.ncyc = [] + if not hasattr(self.data, 'relax_times'): + self.data.relax_times = [] + # The cell data. file_name = str(self.grid.GetCellValue(i, 0)) relax_time = str(self.grid.GetCellValue(i, 1))