mailr4985 - /branches/N_state_model/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 13, 2008 - 17:11:
Author: bugman
Date: Wed Feb 13 17:11:07 2008
New Revision: 4985

URL: http://svn.gna.org/viewcvs/relax?rev=4985&view=rev
Log:
The full length rotated CoM vector is now calculated.


Modified:
    branches/N_state_model/specific_fns/n_state_model.py

Modified: branches/N_state_model/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/specific_fns/n_state_model.py?rev=4985&r1=4984&r2=4985&view=diff
==============================================================================
--- branches/N_state_model/specific_fns/n_state_model.py (original)
+++ branches/N_state_model/specific_fns/n_state_model.py Wed Feb 13 17:11:07 
2008
@@ -145,6 +145,10 @@
         # Total weighted vector.
         cdp.red_CoM = sum(vectors)
         print "The reduced CoM vector is:\n" + `cdp.red_CoM` + "\n"
+
+        # The full length rotated CoM vector.
+        cdp.rot_CoM = norm(cdp.CoM) * cdp.red_CoM / norm(cdp.red_CoM)
+        print "The full length rotated CoM vector is:\n" + `cdp.rot_CoM` + 
"\n"
 
         raise NameError, "hello"
 




Related Messages


Powered by MHonArc, Updated Wed Feb 13 17:20:40 2008