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"