mailr11648 - /branches/bmrb/generic_fns/mol_res_spin.py


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

Header


Content

Posted by edward on October 22, 2010 - 00:42:
Author: bugman
Date: Fri Oct 22 00:42:54 2010
New Revision: 11648

URL: http://svn.gna.org/viewcvs/relax?rev=11648&view=rev
Log:
The reading of entity information from the BMRB file is fixed.


Modified:
    branches/bmrb/generic_fns/mol_res_spin.py

Modified: branches/bmrb/generic_fns/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/generic_fns/mol_res_spin.py?rev=11648&r1=11647&r2=11648&view=diff
==============================================================================
--- branches/bmrb/generic_fns/mol_res_spin.py (original)
+++ branches/bmrb/generic_fns/mol_res_spin.py Fri Oct 22 00:42:54 2010
@@ -495,10 +495,10 @@
     """
 
     # Get the entities.
-    for mol_name, mol_type, res_nums, res_names in star.entity.loop():
+    for data in star.entity.loop():
         # Add the residues.
-        for i in range(len(res_nums)):
-            create_residue(res_nums[i], res_names[i], mol_name=mol_name)
+        for i in range(len(data['res_nums'])):
+            create_residue(data['res_nums'][i], data['res_names'][i], 
mol_name=data['mol_name'])
 
 
 def bmrb_write_entity(star, version=None):




Related Messages


Powered by MHonArc, Updated Fri Oct 22 01:40:02 2010