mailr18884 - /trunk/generic_fns/structure/internal.py


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

Header


Content

Posted by edward on March 19, 2013 - 15:54:
Author: bugman
Date: Tue Mar 19 15:54:28 2013
New Revision: 18884

URL: http://svn.gna.org/viewcvs/relax?rev=18884&view=rev
Log:
Fix for the internal structural object _trim_helix() method for the helix 
metadata format.


Modified:
    trunk/generic_fns/structure/internal.py

Modified: trunk/generic_fns/structure/internal.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/generic_fns/structure/internal.py?rev=18884&r1=18883&r2=18884&view=diff
==============================================================================
--- trunk/generic_fns/structure/internal.py (original)
+++ trunk/generic_fns/structure/internal.py Tue Mar 19 15:54:28 2013
@@ -870,8 +870,8 @@
         """
 
         # Unpack the helix residue numbers.
-        start_res = helix[4]
-        end_res = helix[8]
+        start_res = helix[3]
+        end_res = helix[6]
 
         # The reverse residue list.
         trim_res_list_rev = deepcopy(trim_res_list)
@@ -904,12 +904,12 @@
                 end_res = helix_res[-1]
 
         # Replace the starting and ending residues.
-        if start_res != helix[4]:
-            helix[4] = start_res
+        if start_res != helix[3]:
+            helix[3] = start_res
             helix[2] = res_data[start_res]
-        if end_res != helix[8]:
-            helix[8] = end_res
-            helix[6] = res_data[end_res]
+        if end_res != helix[6]:
+            helix[6] = end_res
+            helix[5] = res_data[end_res]
 
         # The helix length.
         helix[-1] = len(helix_res)




Related Messages


Powered by MHonArc, Updated Tue Mar 19 16:40:02 2013