mailr7136 - /branches/rdc_analysis/prompt/temperature.py


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

Header


Content

Posted by edward on August 11, 2008 - 13:41:
Author: bugman
Date: Mon Aug 11 13:41:30 2008
New Revision: 7136

URL: http://svn.gna.org/viewcvs/relax?rev=7136&view=rev
Log:
Made the experimental id string compulsory.


Modified:
    branches/rdc_analysis/prompt/temperature.py

Modified: branches/rdc_analysis/prompt/temperature.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/prompt/temperature.py?rev=7136&r1=7135&r2=7136&view=diff
==============================================================================
--- branches/rdc_analysis/prompt/temperature.py (original)
+++ branches/rdc_analysis/prompt/temperature.py Mon Aug 11 13:41:30 2008
@@ -28,7 +28,7 @@
 
 # relax module imports.
 from generic_fns import temperature
-from relax_errors import RelaxNoneStrError, RelaxNumError
+from relax_errors import RelaxNumError, RelaxStrError
 
 
 class Temp:
@@ -64,8 +64,8 @@
             print text
 
         # Id string.
-        if id != None and type(id) != str:
-            raise RelaxNoneStrError, ('experiment identification string', id)
+        if type(id) != str:
+            raise RelaxStrError, ('experiment identification string', id)
 
         # The temperature.
         if type(temp) != float and type(temp) != int:




Related Messages


Powered by MHonArc, Updated Mon Aug 11 14:40:30 2008