mailr4995 - /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 15, 2008 - 09:35:
Author: bugman
Date: Fri Feb 15 09:35:06 2008
New Revision: 4995

URL: http://svn.gna.org/viewcvs/relax?rev=4995&view=rev
Log:
Compacted the printed out messages from the n_state_model.CoM() user function.


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=4995&r1=4994&r2=4995&view=diff
==============================================================================
--- branches/N_state_model/specific_fns/n_state_model.py (original)
+++ branches/N_state_model/specific_fns/n_state_model.py Fri Feb 15 09:35:06 
2008
@@ -155,16 +155,17 @@
         cdp.S_diff_in_cone = cos(cdp.theta_diff_in_cone) * (1 + 
cos(cdp.theta_diff_in_cone)) / 2.0
 
         # Print out.
-        print "\nThe pivot point of the domain motions is:\n" + 
`cdp.pivot_point` + "\n"
-        print "The initial centre of mass (prior to rotation) for the moving 
domain is:\n" + `cdp.CoM` + "\n"
-        print "The unit vector between the pivot and CoM is:\n" + 
`unit_vect` + "\n"
-        print "The reduced CoM vector is:\n" + `cdp.red_CoM` + "\n"
-        print "The full length rotated CoM vector is:\n" + `cdp.rot_CoM` + 
"\n"
-        print "The length reduction is:\n" + `len_red` + "\n"
-        print "The cone angle for diffusion on an axially symmetric cone 
is:\n%.5f rad (%.5f deg)\n" % (cdp.theta_diff_on_cone, cdp.theta_diff_on_cone 
/ (2*pi) *360.)
-        print "The order parameter (S_cone) for diffusion on an axially 
symmetric cone is:\nS_cone = %.5f (S^2 = %.5f)\n" % (cdp.S_diff_on_cone, 
cdp.S_diff_on_cone**2)
-        print "The cone angle for diffusion in an axially symmetric cone 
is:\n%.5f rad (%.5f deg)\n" % (cdp.theta_diff_in_cone, cdp.theta_diff_in_cone 
/ (2*pi) *360.)
-        print "The order parameter (S_cone) for diffusion in an axially 
symmetric cone is:\nS_cone = %.5f (S^2 = %.5f)\n" % (cdp.S_diff_in_cone, 
cdp.S_diff_in_cone**2)
+        print "\n%-40s %-20s" % ("Pivot point:", `cdp.pivot_point`)
+        print "%-40s %-20s" % ("Moving domain CoM (prior to rotation):", 
`cdp.CoM`)
+        print "%-40s %-20s" % ("Pivot-CoM unit vector:", `unit_vect`)
+        print "%-40s %-20s" % ("Reduced CoM vector:", `cdp.red_CoM`)
+        print "%-40s %-20s" % ("Full length rotated CoM vector:", 
`cdp.rot_CoM`)
+        print "%-40s %-20s" % ("Length reduction from unity:", `len_red`)
+        print "%-40s %.5f rad (%.5f deg)" % ("Cone angle (diffusion on a 
cone)", cdp.theta_diff_on_cone, cdp.theta_diff_on_cone / (2*pi) *360.)
+        print "%-40s S_cone = %.5f (S^2 = %.5f)" % ("S_cone (diffusion on a 
cone)", cdp.S_diff_on_cone, cdp.S_diff_on_cone**2)
+        print "%-40s %.5f rad (%.5f deg)" % ("Cone angle (diffusion in a 
cone)", cdp.theta_diff_in_cone, cdp.theta_diff_in_cone / (2*pi) *360.)
+        print "%-40s S_cone = %.5f (S^2 = %.5f)" % ("S_cone (diffusion in a 
cone)", cdp.S_diff_in_cone, cdp.S_diff_in_cone**2)
+        print "\n\n"
 
 
     def default_value(self, param):




Related Messages


Powered by MHonArc, Updated Fri Feb 15 10:00:33 2008