mailr8042 - /branches/spectral_errors/prompt/noe.py


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

Header


Content

Posted by edward on November 27, 2008 - 14:20:
Author: bugman
Date: Thu Nov 27 14:20:44 2008
New Revision: 8042

URL: http://svn.gna.org/viewcvs/relax?rev=8042&view=rev
Log:
Fix for the noe.spectrum_type() user function.

The spectrum_type should be a string, not a number.


Modified:
    branches/spectral_errors/prompt/noe.py

Modified: branches/spectral_errors/prompt/noe.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/spectral_errors/prompt/noe.py?rev=8042&r1=8041&r2=8042&view=diff
==============================================================================
--- branches/spectral_errors/prompt/noe.py (original)
+++ branches/spectral_errors/prompt/noe.py Thu Nov 27 14:20:44 2008
@@ -29,7 +29,7 @@
 
 # relax module imports.
 import help
-from relax_errors import RelaxNumError, RelaxStrError
+from relax_errors import RelaxStrError
 from specific_fns.setup import noe_obj
 
 
@@ -77,8 +77,8 @@
             print text
 
         # The spectrum type.
-        if type(spectrum_type) != int and type(spectrum_type) != float:
-            raise RelaxNumError, ('spectrum type', spectrum_type)
+        if type(spectrum_type) != str:
+            raise RelaxStrError, ('spectrum type', spectrum_type)
 
         # The spectrum identification string.
         if type(spectrum_id) != str:




Related Messages


Powered by MHonArc, Updated Thu Nov 27 15:20:03 2008