mailr3673 - /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 November 20, 2007 - 13:49:
Author: bugman
Date: Tue Nov 20 13:49:33 2007
New Revision: 3673

URL: http://svn.gna.org/viewcvs/relax?rev=3673&view=rev
Log:
Bug fix for the residue.renumber() user function.

The res_id was being tested as an int and the new_number as a str.  This is 
the wrong way around!


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=3673&r1=3672&r2=3673&view=diff
==============================================================================
--- 1.3/prompt/residue.py (original)
+++ 1.3/prompt/residue.py Tue Nov 20 13:49:33 2007
@@ -309,12 +309,12 @@
             print text
 
         # Residue identification string.
-        if type(res_id) != int:
-            raise RelaxIntError, ('residue identification string', res_id)
+        if type(res_id) != str:
+            raise RelaxStrError, ('residue identification string', res_id)
 
         # New residue number.
-        if type(new_number) != str:
-            raise RelaxStrError, ('new residue number', new_number)
+        if type(new_number) != int:
+            raise RelaxIntError, ('new residue number', new_number)
 
         # Execute the functional code.
         residue.create(res_num=res_num, new_number=new_number)




Related Messages


Powered by MHonArc, Updated Tue Nov 20 14:00:18 2007