Author: bugman Date: Mon Aug 11 14:21:41 2008 New Revision: 7143 URL: http://svn.gna.org/viewcvs/relax?rev=7143&view=rev Log: Create the interface for the pcs.centre() user function. Modified: branches/rdc_analysis/prompt/pcs.py Modified: branches/rdc_analysis/prompt/pcs.py URL: http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/prompt/pcs.py?rev=7143&r1=7142&r2=7143&view=diff ============================================================================== --- branches/rdc_analysis/prompt/pcs.py (original) +++ branches/rdc_analysis/prompt/pcs.py Mon Aug 11 14:21:41 2008 @@ -66,6 +66,51 @@ # Execute the functional code. pcs.back_calc(id=id) + + + def centre(self, atom_id=None): + """Specify which atom is the paramagnetic centre. + + Keyword Arguments + ~~~~~~~~~~~~~~~~~ + + atom_id: The atom identification string. + + + Description + ~~~~~~~~~~~ + + This function is required for specifying where the paramagnetic centre is located in the + loaded structure file. + + + Examples + ~~~~~~~~ + + If the paramagnetic centre is the lanthanide Dysprosium which is labelled as Dy in a loaded + PDB file, then type one of: + + relax> pcs.centre('Dy') + relax> pcs.centre(atom_id='Dy') + + If the carbon atom 'C1' of residue '4' in the PDB file is to be used as the paramagnetic + centre, then type: + + relax> pcs.centre(':4@C1') + """ + + # Function intro text. + if self.__relax__.interpreter.intro: + text = sys.ps3 + "pcs.centre(" + text = text + "atom_id=" + `atom_id` + ")" + print text + + # The atom identifier argument. + if type(atom_id) != str: + raise RelaxStrError, ('atom identification string', atom_id) + + # Execute the functional code. + pcs.centre(atom_id=atom_id) def copy(self, pipe_from=None, pipe_to=None, id=None):