mailr23230 - /trunk/user_functions/structure.py


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

Header


Content

Posted by edward on May 19, 2014 - 11:57:
Author: bugman
Date: Mon May 19 11:57:56 2014
New Revision: 23230

URL: http://svn.gna.org/viewcvs/relax?rev=23230&view=rev
Log:
Exposed the backend verbosity flag of the structure.read_* user functions.

This allows the user to silence these user functions, which can be very 
useful when loading many
3D structures in the scripting UI mode.  This change is for the 
structure.read_gaussian,
structure.read_pdb, and structure.read_xyz user functions.


Modified:
    trunk/user_functions/structure.py

Modified: trunk/user_functions/structure.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/user_functions/structure.py?rev=23230&r1=23229&r2=23230&view=diff
==============================================================================
--- trunk/user_functions/structure.py   (original)
+++ trunk/user_functions/structure.py   Mon May 19 11:57:56 2014
@@ -644,6 +644,13 @@
     desc = "Set the model numbers of the loaded molecules.  This can be a 
single number or list of numbers.",
     can_be_none = True
 )
+uf.add_keyarg(
+    name = "verbosity",
+    default = 1,
+    py_type = "int",
+    desc_short = "verbosity level",
+    desc = "The amount of information to print out.  Set to zero to silence 
the user function, or one to see all messages."
+)
 # Description.
 uf.desc.append(Desc_container())
 uf.desc[-1].add_paragraph("The atomic positions from a Gaussian log file can 
be read into relax.  If optimisation has been preformed, the last set of 
atomic coordinates from the log will be read to obtain the final structure.  
The log file can be Gzip or Bzip2 compressed.")
@@ -716,6 +723,13 @@
     desc_short = "alternate location indicator",
     desc = "The PDB ATOM record 'Alternate location indicator' field value.",
     can_be_none = True
+)
+uf.add_keyarg(
+    name = "verbosity",
+    default = 1,
+    py_type = "int",
+    desc_short = "verbosity level",
+    desc = "The amount of information to print out.  Set to zero to silence 
the user function, or one to see all messages."
 )
 uf.add_keyarg(
     name = "merge",
@@ -805,6 +819,13 @@
     desc = "Set the model numbers of the loaded molecules.  If unset, then 
the PDB model numbers will be preserved if they exist.  This can be a single 
number or list of numbers.",
     can_be_none = True
 )
+uf.add_keyarg(
+    name = "verbosity",
+    default = 1,
+    py_type = "int",
+    desc_short = "verbosity level",
+    desc = "The amount of information to print out.  Set to zero to silence 
the user function, or one to see all messages."
+)
 # Description.
 uf.desc.append(Desc_container())
 uf.desc[-1].add_paragraph("The XYZ files with different models, which 
defined as an ensemble of the same molecule but with different atomic 
positions, can be read into relax.  If there are several molecules in one xyz 
file, please separate them into different files and then load them 
individually.  Loading different models and different molecules is controlled 
by specifying the molecule number read, setting the molecule names, 
specifying which model to read, and setting the model numbers.")




Related Messages


Powered by MHonArc, Updated Mon May 19 12:00:03 2014