mailr5093 - /1.3/specific_fns/n_state_model.py


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

Header


Content

Posted by edward on February 21, 2008 - 11:18:
Author: bugman
Date: Thu Feb 21 11:10:01 2008
New Revision: 5093

URL: http://svn.gna.org/viewcvs/relax?rev=5093&view=rev
Log:
Bug fix in the CoM() function.  The variable unit_vector was being referenced 
before it existed.


Modified:
    1.3/specific_fns/n_state_model.py

Modified: 1.3/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/n_state_model.py?rev=5093&r1=5092&r2=5093&view=diff
==============================================================================
--- 1.3/specific_fns/n_state_model.py (original)
+++ 1.3/specific_fns/n_state_model.py Thu Feb 21 11:10:01 2008
@@ -123,7 +123,7 @@
         cdp.pivot_CoM = array(cdp.CoM, float64) - array(cdp.pivot_point, 
float64)
 
         # Calculate the unit vector between the pivot and CoM points.
-        unit_vect = cdp.pivot_CoM / norm(unit_vect)
+        unit_vect = cdp.pivot_CoM / norm(cdp.pivot_CoM)
 
         # Initilise some data structures.
         R = zeros((3,3), float64)




Related Messages


Powered by MHonArc, Updated Thu Feb 21 11:20:39 2008