mailr18571 - /branches/frame_order_testing/specific_fns/frame_order.py


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

Header


Content

Posted by edward on February 24, 2013 - 17:59:
Author: bugman
Date: Sun Feb 24 17:59:20 2013
New Revision: 18571

URL: http://svn.gna.org/viewcvs/relax?rev=18571&view=rev
Log:
Bug fix for the frame order analysis when multiple models are present.

The averaging of the atomic positions was not working and instead a sum was 
being performed.


Modified:
    branches/frame_order_testing/specific_fns/frame_order.py

Modified: branches/frame_order_testing/specific_fns/frame_order.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/specific_fns/frame_order.py?rev=18571&r1=18570&r2=18571&view=diff
==============================================================================
--- branches/frame_order_testing/specific_fns/frame_order.py (original)
+++ branches/frame_order_testing/specific_fns/frame_order.py Sun Feb 24 
17:59:20 2013
@@ -656,6 +656,7 @@
                 ave_pos = zeros(3, float64)
                 for i in range(len(spin.pos)):
                     ave_pos += spin.pos[i]
+                ave_pos = ave_pos / len(spin.pos)
 
                 # Store.
                 atomic_pos.append(ave_pos)




Related Messages


Powered by MHonArc, Updated Mon Feb 25 14:20:02 2013