mailr7419 - /1.3/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 September 27, 2008 - 19:54:
Author: bugman
Date: Sat Sep 27 19:54:23 2008
New Revision: 7419

URL: http://svn.gna.org/viewcvs/relax?rev=7419&view=rev
Log:
Fixed all the structure loops.


Modified:
    1.3/generic_fns/structure/internal.py

Modified: 1.3/generic_fns/structure/internal.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/internal.py?rev=7419&r1=7418&r2=7419&view=diff
==============================================================================
--- 1.3/generic_fns/structure/internal.py (original)
+++ 1.3/generic_fns/structure/internal.py Sat Sep 27 19:54:23 2008
@@ -555,9 +555,8 @@
         @type struct_index:     None or int
         """
 
-
         # Loop over the structures.
-        for i in xrange(len(self.structural_data)):
+        for i in xrange(self.num):
             # Skip non-matching structures.
             if struct_index != None and struct_index != i:
                 continue
@@ -594,7 +593,7 @@
         """
 
         # Loop over the structures.
-        for i in xrange(len(self.structural_data)):
+        for i in xrange(self.num):
             # Skip non-matching structures.
             if struct_index != None and struct_index != i:
                 continue
@@ -770,7 +769,7 @@
         warnings = None
 
         # Loop over the structures.
-        for i in xrange(len(self.structural_data)):
+        for i in xrange(self.num):
             # Single structure.
             if struct_index and struct_index != i:
                 continue
@@ -954,7 +953,7 @@
         het_data_coll = []
 
         # Loop over the structures.
-        for index in xrange(len(self.structural_data)):
+        for index in xrange(self.num):
             # Skip non-matching structures.
             if struct_index != None and struct_index != index:
                 continue
@@ -1095,7 +1094,7 @@
         ######################
 
         # Loop over the structures.
-        for index in xrange(len(self.structural_data)):
+        for index in xrange(self.num):
             # Skip non-matching structures.
             if struct_index != None and struct_index != index:
                 continue




Related Messages


Powered by MHonArc, Updated Sat Sep 27 20:20:03 2008