mailr3581 - /1.3/prompt/spin.py


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

Header


Content

Posted by edward on November 18, 2007 - 21:54:
Author: bugman
Date: Sun Nov 18 21:54:13 2007
New Revision: 3581

URL: http://svn.gna.org/viewcvs/relax?rev=3581&view=rev
Log:
Fixed a bug in the spin.create() user function.

The residue ID string was been checked if it was a string.  It can also be 
None!


Modified:
    1.3/prompt/spin.py

Modified: 1.3/prompt/spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/spin.py?rev=3581&r1=3580&r2=3581&view=diff
==============================================================================
--- 1.3/prompt/spin.py (original)
+++ 1.3/prompt/spin.py Sun Nov 18 21:54:13 2007
@@ -162,8 +162,8 @@
             raise RelaxStrError, ('spin name', spin_name)
 
         # The residue ID.
-        if type(res_id) != str:
-            raise RelaxStrError, ('residue identification string', res_id)
+        if res_id != None and type(res_id) != str:
+            raise RelaxNoneStrError, ('residue identification string', 
res_id)
 
         # Execute the functional code.
         spin.create(spin_num=spin_num, spin_name=spin_name, res_id=res_id)




Related Messages


Powered by MHonArc, Updated Sun Nov 18 22:20:11 2007