mailr5813 - /1.3/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 April 17, 2008 - 00:03:
Author: bugman
Date: Thu Apr 17 00:03:36 2008
New Revision: 5813

URL: http://svn.gna.org/viewcvs/relax?rev=5813&view=rev
Log:
Small fix for the xh_vector() method.


Modified:
    1.3/generic_fns/structure/scientific.py

Modified: 1.3/generic_fns/structure/scientific.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/scientific.py?rev=5813&r1=5812&r2=5813&view=diff
==============================================================================
--- 1.3/generic_fns/structure/scientific.py (original)
+++ 1.3/generic_fns/structure/scientific.py Thu Apr 17 00:03:36 2008
@@ -338,11 +338,8 @@
         vector_array = []
         ave_vector = zeros(3, float64)
 
-        # Number of structures.
-        num_str = len(self.structural_data)
-
         # Loop over the structures.
-        for i in xrange(num_str):
+        for i in xrange(self.num_str()):
             # The vectors from a specific structure.
             if structure != None and structure != i:
                 continue




Related Messages


Powered by MHonArc, Updated Fri Apr 18 14:20:15 2008