Author: bugman Date: Thu Feb 7 13:48:15 2008 New Revision: 4933 URL: http://svn.gna.org/viewcvs/relax?rev=4933&view=rev Log: Added the verbosity argument to the structure.vectors() user function. Modified: 1.3/prompt/structure.py Modified: 1.3/prompt/structure.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/structure.py?rev=4933&r1=4932&r2=4933&view=diff ============================================================================== --- 1.3/prompt/structure.py (original) +++ 1.3/prompt/structure.py Thu Feb 7 13:48:15 2008 @@ -303,7 +303,7 @@ structure.read_pdb(file=file, dir=dir, model=model, load_seq=load_seq) - def vectors(self, heteronuc='N', proton='H', spin_id=None): + def vectors(self, heteronuc='N', proton='H', spin_id=None, verbosity=1): """Function for calculating/extracting XH vectors from the structure. Keyword arguments @@ -314,6 +314,9 @@ proton: The name of the proton as specified in the PDB file. spin_id: The spin identification string. + + verbosity: The amount of information to print to screen. Zero corresponds to minimal + output while higher values increase the amount of output. The default value is 1. Description @@ -354,7 +357,8 @@ text = sys.ps3 + "structure.vectors(" text = text + "heteronuc=" + `heteronuc` text = text + ", proton=" + `proton` - text = text + ", spin_id=" + `spin_id` + ")" + text = text + ", spin_id=" + `spin_id` + text = text + ", verbosity=" + `verbosity` + ")" print text # The heteronucleus argument. @@ -369,5 +373,9 @@ if spin_id != None and type(spin_id) != str: raise RelaxNoneStrError, ('Spin identification string', spin_id) + # The verbosity level. + if type(verbosity) != int: + raise RelaxIntError, ('verbosity level', verbosity) + # Execute the functional code. - structure.vectors(heteronuc=heteronuc, proton=proton, spin_id=spin_id) + structure.vectors(heteronuc=heteronuc, proton=proton, spin_id=spin_id, verbosity=verbosity)