Author: bugman Date: Fri Jul 1 18:14:18 2011 New Revision: 13389 URL: http://svn.gna.org/viewcvs/relax?rev=13389&view=rev Log: The spin ID string documentation object id_string_doc is now a list of the title and desc. Modified: branches/gui_testing/generic_fns/mol_res_spin.py Modified: branches/gui_testing/generic_fns/mol_res_spin.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/generic_fns/mol_res_spin.py?rev=13389&r1=13388&r2=13389&view=diff ============================================================================== --- branches/gui_testing/generic_fns/mol_res_spin.py (original) +++ branches/gui_testing/generic_fns/mol_res_spin.py Fri Jul 1 18:14:18 2011 @@ -58,22 +58,13 @@ ] """The list of allowable molecule types.""" -id_string_doc = """ -Identification string documentation -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - +id_string_doc = ["Spin ID string documentation", """ The identification string is composed of three components: the molecule id token beginning with the '#' character, the residue id token beginning with the ':' character, and the atom or spin system id token beginning with the '@' character. Each token can be composed of multiple elements separated by the ',' character and each individual element can either be a number (which must be an integer, in string format), a name, or a range of numbers separated by the '-' character. Negative numbers are supported. The full id string specification is '#<mol_name> :<res_id>[, <res_id>[, <res_id>, ...]] @<atom_id>[, <atom_id>[, <atom_id>, ...]]', where the token elements are '<mol_name>', the name of the molecule, '<res_id>', the residue identifier which can be a number, name, or range of numbers, '<atom_id>', the atom or spin system identifier which can be a number, name, or range of numbers. If one of the tokens is left out then all elements will be assumed to match. For example if the string does not contain the '#' character then all molecules will match the string. Regular expression can be used to select spins. For example the string '@H*' will select the protons 'H', 'H2', 'H98'. -""" - -# Wrap the id string doc. -string = '' -for line in split('\n', id_string_doc): - string = string + fill(line, width=100, initial_indent=8*' ', subsequent_indent=8*' ') + '\n' -id_string_doc_wrap = string +"""]