mailr6617 - /1.3/prompt/residue.py


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

Header


Content

Posted by edward on July 03, 2008 - 21:19:
Author: bugman
Date: Thu Jul  3 21:19:33 2008
New Revision: 6617

URL: http://svn.gna.org/viewcvs/relax?rev=6617&view=rev
Log:
Fix for the residue.create() user function.  The residue name is not 
necessary.


Modified:
    1.3/prompt/residue.py

Modified: 1.3/prompt/residue.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/residue.py?rev=6617&r1=6616&r2=6617&view=diff
==============================================================================
--- 1.3/prompt/residue.py (original)
+++ 1.3/prompt/residue.py Thu Jul  3 21:19:33 2008
@@ -161,8 +161,8 @@
             raise RelaxIntError, ('residue number', res_num)
 
         # Residue name.
-        if type(res_name) != str:
-            raise RelaxStrError, ('residue name', res_name)
+        if res_name != None and type(res_name) != str:
+            raise RelaxNoneStrError, ('residue name', res_name)
 
         # The molecule ID.
         if mol_id != None and type(mol_id) != str:




Related Messages


Powered by MHonArc, Updated Thu Jul 03 21:40:11 2008