Author: bugman Date: Thu Jan 28 09:34:30 2010 New Revision: 10460 URL: http://svn.gna.org/viewcvs/relax?rev=10460&view=rev Log: Temporary fixes for state_load(). These will have to change later and are only needed because of the current fixed layout of analyses. Modified: branches/bieri_gui/gui_bieri/relax_gui.py Modified: branches/bieri_gui/gui_bieri/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/relax_gui.py?rev=10460&r1=10459&r2=10460&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/relax_gui.py (original) +++ branches/bieri_gui/gui_bieri/relax_gui.py Thu Jan 28 09:34:30 2010 @@ -2590,11 +2590,15 @@ # Update the core of the GUI to match the new data store. self.sync_ds(upload=False) - # Build the analysis frames (commented out until analyses are dynamically loaded and unloaded). - #for i in range(len(ds.relax_gui.analyses)): - # # The automatic model-free protocol frame - # if ds.relax_gui.analyses[i].type = 'model-free': - # self.analysis_frames.append(Auto_model_free(self)) + # Build the analysis frames + for i in range(len(ds.relax_gui.analyses)): + # The automatic model-free protocol frame + if ds.relax_gui.analyses[i].analysis_type == 'model-free': + # FIXME: (commented out until analyses are dynamically loaded and unloaded). + #self.analysis_frames.append(Auto_model_free(self)) + + # FIXME: Temporary fix - set the model-free data structure explicitly. + self.analysis_frames[0].data = ds.relax_gui.analyses[i] # Execute the analysis frame specific update methods. for analysis in self.analysis_frames: