mailr8531 - /branches/multi_structure/generic_fns/structure/scientific.py


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

Header


Content

Posted by edward on January 19, 2009 - 14:39:
Author: bugman
Date: Mon Jan 19 14:39:52 2009
New Revision: 8531

URL: http://svn.gna.org/viewcvs/relax?rev=8531&view=rev
Log:
Fixes for __residue_loop().  The Scientific python data structure is now in 
MolContainer.data.


Modified:
    branches/multi_structure/generic_fns/structure/scientific.py

Modified: branches/multi_structure/generic_fns/structure/scientific.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/scientific.py?rev=8531&r1=8530&r2=8531&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/scientific.py (original)
+++ branches/multi_structure/generic_fns/structure/scientific.py Mon Jan 19 
14:39:52 2009
@@ -124,7 +124,7 @@
         if mol.mol_type != 'other':
             # Loop over the residues of the protein in the PDB file.
             res_index = -1
-            for res in mol.residues:
+            for res in mol.data.residues:
                 # Residue number and name.
                 if mol.mol_type == 'nucleic acid':
                     res_name = res.name[-1]
@@ -147,7 +147,7 @@
             res_index = -1
             print mol
             print "\n"*10
-            for res in mol:
+            for res in mol.data:
                 print res
                 # Residue index.
                 res_index = res_index + 1




Related Messages


Powered by MHonArc, Updated Mon Jan 19 15:00:04 2009