Author: bugman Date: Wed Jun 15 15:39:37 2011 New Revision: 13041 URL: http://svn.gna.org/viewcvs/relax?rev=13041&view=rev Log: Added a map to convert the analysis name in the savefile to that used by add_analysis(). Modified: branches/gui_testing/gui/relax_gui.py Modified: branches/gui_testing/gui/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/relax_gui.py?rev=13041&r1=13040&r2=13041&view=diff ============================================================================== --- branches/gui_testing/gui/relax_gui.py (original) +++ branches/gui_testing/gui/relax_gui.py Wed Jun 15 15:39:37 2011 @@ -574,8 +574,12 @@ state.load_state(filename, verbosity=0) # Reconstruct the analysis tabs. + map = {'NOE': 'noe', + 'R1': 'r1', + 'R2': 'r2', + 'model-free': 'mf'} for i in range(len(ds.relax_gui.analyses)): - self.add_analysis(ds.relax_gui.analyses[i].analysis_type) + self.add_analysis(map[ds.relax_gui.analyses[i].analysis_type]) # Update the core of the GUI to match the new data store. self.sync_ds(upload=False)