mailr26266 - /trunk/pipe_control/value.py


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

Header


Content

Posted by edward on October 13, 2014 - 22:58:
Author: bugman
Date: Mon Oct 13 22:58:22 2014
New Revision: 26266

URL: http://svn.gna.org/viewcvs/relax?rev=26266&view=rev
Log:
Added the verbosity argument to the pipe_control.value.set() function.

This is passed into the pipe_control.minimise.reset_min_stats() function so 
its printouts can be
silenced.


Modified:
    trunk/pipe_control/value.py

Modified: trunk/pipe_control/value.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/value.py?rev=26266&r1=26265&r2=26266&view=diff
==============================================================================
--- trunk/pipe_control/value.py (original)
+++ trunk/pipe_control/value.py Mon Oct 13 22:58:22 2014
@@ -351,7 +351,7 @@
         minimise.reset_min_stats()
 
 
-def set(val=None, param=None, index=None, pipe=None, spin_id=None, 
error=False, force=True, reset=True):
+def set(val=None, param=None, index=None, pipe=None, spin_id=None, 
verbosity=1, error=False, force=True, reset=True):
     """Set global or spin specific data values.
 
     @keyword val:       The parameter values.
@@ -364,6 +364,8 @@
     @type pipe:         None or str
     @keyword spin_id:   The spin identification string.
     @type spin_id:      str
+    @keyword verbosity: The amount of information to print.  The higher the 
value, the greater the verbosity.
+    @type verbosity:    int
     @keyword error:     A flag which if True will allow the parameter errors 
to be set instead of the values.
     @type error:        bool
     @keyword force:     A flag forcing the overwriting of current values.
@@ -425,7 +427,7 @@
 
     # Reset all minimisation statistics.
     if reset:
-        minimise.reset_min_stats()
+        minimise.reset_min_stats(verbosity=verbosity)
 
     # Switch back.
     if pipe:




Related Messages


Powered by MHonArc, Updated Mon Oct 13 23:00:02 2014