mailr13777 - /branches/gui_testing/gui/analyses/__init__.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 20, 2011 - 15:32:
Author: bugman
Date: Wed Jul 20 15:32:03 2011
New Revision: 13777

URL: http://svn.gna.org/viewcvs/relax?rev=13777&view=rev
Log:
Fix for the load_from_store() GUI method - analysis tabs are only recreated 
if ds.relax_gui exists.


Modified:
    branches/gui_testing/gui/analyses/__init__.py

Modified: branches/gui_testing/gui/analyses/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/__init__.py?rev=13777&r1=13776&r2=13777&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/__init__.py (original)
+++ branches/gui_testing/gui/analyses/__init__.py Wed Jul 20 15:32:03 2011
@@ -198,10 +198,17 @@
     def load_from_store(self):
         """Recreate the analyses from the relax data store."""
 
+        # No relax_gui data store structure, so do nothing.
+        if not hasattr(ds, 'relax_gui'):
+            return
+
+        # A remapping table.
         map = {'NOE': 'noe',
                'R1': 'r1',
                'R2': 'r2',
                'model-free': 'mf'}
+
+        # Loop over each analysis.
         for i in range(len(ds.relax_gui.analyses)):
             # The analysis name.
             if hasattr(ds.relax_gui.analyses[i], 'analysis_name'):




Related Messages


Powered by MHonArc, Updated Wed Jul 20 16:00:02 2011