mailr10846 - /1.3/auto_analyses/stereochem_analysis.py


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

Header


Content

Posted by edward on February 23, 2010 - 11:18:
Author: bugman
Date: Tue Feb 23 11:18:32 2010
New Revision: 10846

URL: http://svn.gna.org/viewcvs/relax?rev=10846&view=rev
Log:
Added a check for the stage number in the stereochemistry auto analysis.


Modified:
    1.3/auto_analyses/stereochem_analysis.py

Modified: 1.3/auto_analyses/stereochem_analysis.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/auto_analyses/stereochem_analysis.py?rev=10846&r1=10845&r2=10846&view=diff
==============================================================================
--- 1.3/auto_analyses/stereochem_analysis.py (original)
+++ 1.3/auto_analyses/stereochem_analysis.py Tue Feb 23 11:18:32 2010
@@ -59,6 +59,7 @@
 from generic_fns.selection import spin_loop
 from physical_constants import dipolar_constant, g1H, g13C
 from prompt.interpreter import Interpreter
+from relax_errors import RelaxError
 from relax_io import mkdir_nofail
 
 
@@ -201,6 +202,10 @@
         elif self.stage == 5:
             self.grace_plots()
 
+        # Unknown stage.
+        else:
+            raise RelaxError("The stage number %s is unknown." % self.stage)
+
         # Restore STDOUT.
         sys.stdout = self.stdout_orig
 




Related Messages


Powered by MHonArc, Updated Tue Feb 23 12:00:03 2010