mailr7562 - /1.3/specific_fns/noe.py


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

Header


Content

Posted by edward on October 07, 2008 - 22:54:
Author: bugman
Date: Tue Oct  7 22:54:17 2008
New Revision: 7562

URL: http://svn.gna.org/viewcvs/relax?rev=7562&view=rev
Log:
Added a check to assign_function() for when the spectrum_type arg is 
incorrect.


Modified:
    1.3/specific_fns/noe.py

Modified: 1.3/specific_fns/noe.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/noe.py?rev=7562&r1=7561&r2=7562&view=diff
==============================================================================
--- 1.3/specific_fns/noe.py (original)
+++ 1.3/specific_fns/noe.py Tue Oct  7 22:54:17 2008
@@ -54,6 +54,8 @@
             spin.ref = intensity
         elif spectrum_type == 'sat':
             spin.sat = intensity
+        else:
+            raise RelaxError, "The spectrum type '%s' is unknown." % 
spectrum_type
 
 
     def calculate(self, run=None, verbosity=1):




Related Messages


Powered by MHonArc, Updated Tue Oct 07 23:00:04 2008