mailr27710 - /trunk/pipe_control/structure/main.py


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

Header


Content

Posted by edward on February 20, 2015 - 16:54:
Author: bugman
Date: Fri Feb 20 16:54:24 2015
New Revision: 27710

URL: http://svn.gna.org/viewcvs/relax?rev=27710&view=rev
Log:
Python 3 fix for the 
pipe_control.structure.main.assemble_structural_coordinates() function.

This affects most of the structure user functions.  This was another case of 
requiring the list()
built in function to create a list object from an iterator.


Modified:
    trunk/pipe_control/structure/main.py

Modified: trunk/pipe_control/structure/main.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/structure/main.py?rev=27710&r1=27709&r2=27710&view=diff
==============================================================================
--- trunk/pipe_control/structure/main.py        (original)
+++ trunk/pipe_control/structure/main.py        Fri Feb 20 16:54:24 2015
@@ -181,7 +181,7 @@
         for mol_index in range(num_mols):
             res_num_list.append([])
             for i in range(len(one_letter_codes[mol_index])):
-                key = res_nums[mol_index][i].keys()[0]
+                key = list(res_nums[mol_index][i].keys())[0]
                 res_num_list[mol_index].append(res_nums[mol_index][i][key])
 
         # Sequence alignment.




Related Messages


Powered by MHonArc, Updated Fri Feb 20 17:00:03 2015