Author: bugman Date: Fri Jul 8 10:37:54 2011 New Revision: 13520 URL: http://svn.gna.org/viewcvs/relax?rev=13520&view=rev Log: Basic docstring changes. Modified: branches/gui_testing/generic_fns/structure/main.py Modified: branches/gui_testing/generic_fns/structure/main.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/generic_fns/structure/main.py?rev=13520&r1=13519&r2=13520&view=diff ============================================================================== --- branches/gui_testing/generic_fns/structure/main.py (original) +++ branches/gui_testing/generic_fns/structure/main.py Fri Jul 8 10:37:54 2011 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2003-2010 Edward d'Auvergne # +# Copyright (C) 2003-2011 Edward d'Auvergne # # # # This file is part of the program relax. # # # @@ -66,11 +66,9 @@ @keyword spin_id: The molecule, residue, and spin identifier string. @type spin_id: str - @keyword str_id: The structure identifier. This can be the file name, model number, - or structure number. + @keyword str_id: The structure identifier. This can be the file name, model number, or structure number. @type str_id: int or str - @keyword ave_pos: A flag specifying if the average atom position or the atom position - from all loaded structures is loaded into the SpinContainer. + @keyword ave_pos: A flag specifying if the average atom position or the atom position from all loaded structures is loaded into the SpinContainer. @type ave_pos: bool """ @@ -148,14 +146,11 @@ @keyword spin_id: The molecule, residue, and spin identifier string. @type spin_id: str - @keyword str_id: The structure identifier. This can be the file name, model number, - or structure number. + @keyword str_id: The structure identifier. This can be the file name, model number, or structure number. @type str_id: int or str - @keyword combine_models: A flag specifying if spins from only one structure of the ensemble - or from all should be loaded. + @keyword combine_models: A flag specifying if spins from only one structure of the ensemble or from all should be loaded. @type combine_models: bool - @keyword ave_pos: A flag specifying if the average atom position or the atom position - from all loaded structures is loaded into the SpinContainer. + @keyword ave_pos: A flag specifying if the average atom position or the atom position from all loaded structures is loaded into the SpinContainer. @type ave_pos: bool """ @@ -295,36 +290,23 @@ @keyword file: The name of the PDB file to read. @type file: str - @keyword dir: The directory where the PDB file is located. If set to None, then the - file will be searched for in the current directory. + @keyword dir: The directory where the PDB file is located. If set to None, then the file will be searched for in the current directory. @type dir: str or None - @keyword read_mol: The molecule(s) to read from the file, independent of model. The - molecules are determined differently by the different parsers, but are - numbered consecutively from 1. If set to None, then all molecules will - be loaded. + @keyword read_mol: The molecule(s) to read from the file, independent of model. The molecules are determined differently by the different parsers, but are numbered consecutively from 1. If set to None, then all molecules will be loaded. @type read_mol: None, int, or list of int - @keyword set_mol_name: Set the names of the molecules which are loaded. If set to None, then - the molecules will be automatically labelled based on the file name or - other information. + @keyword set_mol_name: Set the names of the molecules which are loaded. If set to None, then the molecules will be automatically labelled based on the file name or other information. @type set_mol_name: None, str, or list of str - @keyword read_model: The PDB model to extract from the file. If set to None, then all models - will be loaded. + @keyword read_model: The PDB model to extract from the file. If set to None, then all models will be loaded. @type read_model: None, int, or list of int - @keyword set_model_num: Set the model number of the loaded molecule. If set to None, then the - PDB model numbers will be preserved, if they exist. + @keyword set_model_num: Set the model number of the loaded molecule. If set to None, then the PDB model numbers will be preserved, if they exist. @type set_model_num: None, int, or list of int @keyword parser: The parser to be used to read the PDB file. @type parser: str - @keyword fail: A flag which, if True, will cause a RelaxError to be raised if the PDB - file does not exist. If False, then a RelaxWarning will be trown - instead. + @keyword fail: A flag which, if True, will cause a RelaxError to be raised if the PDB file does not exist. If False, then a RelaxWarning will be trown instead. @type fail: bool - @keyword 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. + @keyword 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. @type verbosity: int - @raise RelaxFileError: If the fail flag is set, then a RelaxError is raised if the PDB file - does not exist. + @raise RelaxFileError: If the fail flag is set, then a RelaxError is raised if the PDB file does not exist. """ # Test if the current data pipe exists. @@ -380,22 +362,17 @@ def vectors(attached=None, spin_id=None, model=None, verbosity=1, ave=True, unit=True): """Extract the bond vectors from the loaded structures and store them in the spin container. - @keyword attached: The name of the atom attached to the spin, as given in the structural - file. Regular expression can be used, for example 'H*'. This uses - relax rather than Python regular expression (i.e. shell like syntax). + @keyword attached: The name of the atom attached to the spin, as given in the structural file. Regular expression can be used, for example 'H*'. This uses relax rather than Python regular expression (i.e. shell like syntax). @type attached: str @keyword spin_id: The spin identifier string. @type spin_id: str - @keyword model: The model to extract the vector from. If None, all vectors will be - extracted. + @keyword model: The model to extract the vector from. If None, all vectors will be extracted. @type model: str @keyword verbosity: The higher the value, the more information is printed to screen. @type verbosity: int - @keyword ave: A flag which if True will cause the average of all vectors to be - extracted. + @keyword ave: A flag which if True will cause the average of all vectors to be extracted. @type ave: bool - @keyword unit: A flag which if True will cause the function to calculate the unit - vectors. + @keyword unit: A flag which if True will cause the function to calculate the unit vectors. @type unit: bool """ @@ -535,11 +512,9 @@ @keyword file: The name of the PDB file to write. @type file: str - @keyword dir: The directory where the PDB file will be placed. If set to None, then - the file will be placed in the current directory. + @keyword dir: The directory where the PDB file will be placed. If set to None, then the file will be placed in the current directory. @type dir: str or None - @keyword model_num: The model to place into the PDB file. If not supplied, then all - models will be placed into the file. + @keyword model_num: The model to place into the PDB file. If not supplied, then all models will be placed into the file. @type model_num: None or int @keyword force: The force flag which if True will cause the file to be overwritten. @type force: bool