mailr7376 - /1.3/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 September 26, 2008 - 22:01:
Author: bugman
Date: Fri Sep 26 22:01:40 2008
New Revision: 7376

URL: http://svn.gna.org/viewcvs/relax?rev=7376&view=rev
Log:
Another fix for the find_index() function.


Modified:
    1.3/generic_fns/mol_res_spin.py

Modified: 1.3/generic_fns/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/mol_res_spin.py?rev=7376&r1=7375&r2=7376&view=diff
==============================================================================
--- 1.3/generic_fns/mol_res_spin.py (original)
+++ 1.3/generic_fns/mol_res_spin.py Fri Sep 26 22:01:40 2008
@@ -1131,8 +1131,8 @@
     select_obj = Selection(selection)
 
     # Init the mol and global index.
-    global_i = 0
-    mol_index = 0
+    global_i = -1
+    mol_index = -1
 
     # Loop over the molecules.
     for mol in ds[pipe].mol:
@@ -1140,7 +1140,7 @@
         mol_index = mol_index + 1
 
         # Init the residue index.
-        res_index = 0
+        res_index = -1
 
         # Loop over the residues.
         for res in mol.res:
@@ -1148,7 +1148,7 @@
             res_index = res_index + 1
 
             # Init the residue index.
-            spin_index = 0
+            spin_index = -1
 
             # Loop over the spins.
             for spin in res.spin:




Related Messages


Powered by MHonArc, Updated Fri Sep 26 22:40:06 2008