mailr24520 - /branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py


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

Header


Content

Posted by edward on July 11, 2014 - 10:33:
Author: bugman
Date: Fri Jul 11 10:33:48 2014
New Revision: 24520

URL: http://svn.gna.org/viewcvs/relax?rev=24520&view=rev
Log:
Improvements for the printout at the start of optimisation of the frame order 
models.

This is in the target_fn_setup() frame order method.  All the printouts are 
now in one place and
they are now better formatted and better controlled.


Modified:
    branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py

Modified: 
branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py?rev=24520&r1=24519&r2=24520&view=diff
==============================================================================
--- 
branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py  
(original)
+++ 
branches/frame_order_cleanup/specific_analyses/frame_order/optimisation.py  
Fri Jul 11 10:33:48 2014
@@ -678,8 +678,6 @@
 
     # The centre of mass of the moving domain - to use as the centroid for 
the average domain position rotation.
     ave_pos_pivot = pipe_centre_of_mass(atom_id=domain_moving(), verbosity=0)
-    if verbosity:
-        print("The average domain rotation centroid, taken as the CoM of all 
spins loaded for the moving domain, is at:\n    %s" % list(ave_pos_pivot))
 
     # The centre of mass, for use in the rotor models.
     com = None
@@ -688,21 +686,21 @@
         com = pipe_centre_of_mass(verbosity=0)
         com = array(com, float64)
 
-        # Printout.
-        if verbosity:
-            print("The centre of mass reference coordinate for the rotor 
models is at:\n    %s" % list(com))
-
-    # Print outs.
-    if sim_index == None:
+    # Information printout.
+    if verbosity and sim_index == None:
+        sys.stdout.write("The average domain rotation centroid, taken as the 
CoM of the atoms defined as the moving domain, is:\n    %s\n" % 
list(ave_pos_pivot))
+        if com != None:
+            sys.stdout.write("The centre of mass reference coordinate for 
the rotor models is:\n    %s\n" % list(com))
         if cdp.model != MODEL_RIGID:
-            sys.stdout.write("Numerical integration via the quasi-random 
Sobol' sequence.\n")
-            sys.stdout.write("Number of integration points: %s\n" % 
cdp.num_int_pts)
+            sys.stdout.write("Numerical integration:  Quasi-random Sobol' 
sequence.\n")
+            sys.stdout.write("Number of integration points:  %s\n" % 
cdp.num_int_pts)
         base_data = []
         if rdcs != None and len(rdcs):
             base_data.append("RDCs")
         if pcs != None and len(pcs):
             base_data.append("PCSs")
         sys.stdout.write("Base data: %s\n" % repr(base_data))
+        sys.stdout.write("\n")
 
     # Return the data.
     return param_vector, full_tensors, full_in_ref_frame, rdcs, rdc_err, 
rdc_weight, rdc_vect, rdc_const, pcs, pcs_err, pcs_weight, atomic_pos, temp, 
frq, paramag_centre, com, ave_pos_pivot, pivot, pivot_opt




Related Messages


Powered by MHonArc, Updated Fri Jul 11 10:40:03 2014