mailr17888 - /trunk/gui/analyses/auto_model_free.py


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

Header


Content

Posted by edward on October 17, 2012 - 11:33:
Author: bugman
Date: Wed Oct 17 11:33:35 2012
New Revision: 17888

URL: http://svn.gna.org/viewcvs/relax?rev=17888&view=rev
Log:
Added some error checking for the data pipe bundle in the auto model-free 
analysis GUI code.


Modified:
    trunk/gui/analyses/auto_model_free.py

Modified: trunk/gui/analyses/auto_model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/analyses/auto_model_free.py?rev=17888&r1=17887&r2=17888&view=diff
==============================================================================
--- trunk/gui/analyses/auto_model_free.py (original)
+++ trunk/gui/analyses/auto_model_free.py Wed Oct 17 11:33:35 2012
@@ -39,6 +39,7 @@
 from generic_fns.pipes import has_bundle, has_pipe
 from graphics import fetch_icon
 from physical_constants import NH_BOND_LENGTH
+from relax_errors import RelaxError
 from relax_string import LIST, PARAGRAPH, SECTION, SUBSECTION, TITLE
 from specific_fns.setup import get_specific_fn
 from status import Status; status = Status()
@@ -209,6 +210,10 @@
             ds.relax_gui.analyses[data_index].local_tm_models = ['tm0', 
'tm1', 'tm2', 'tm3', 'tm4', 'tm5', 'tm6', 'tm7', 'tm8', 'tm9']
             ds.relax_gui.analyses[data_index].mf_models = ['m0', 'm1', 'm2', 
'm3', 'm4', 'm5', 'm6', 'm7', 'm8', 'm9']
             ds.relax_gui.analyses[data_index].max_iter = 30
+
+        # Error checking.
+        if ds.relax_gui.analyses[data_index].pipe_bundle == None:
+            raise RelaxError("The pipe bundle must be supplied.")
 
         # Alias the data.
         self.data = ds.relax_gui.analyses[data_index]




Related Messages


Powered by MHonArc, Updated Wed Oct 17 11:40:01 2012