Author: bugman Date: Fri Apr 4 11:14:11 2008 New Revision: 5288 URL: http://svn.gna.org/viewcvs/relax?rev=5288&view=rev Log: Deletion of the generic_fns.structure.atomic_mass() function. Modified: 1.3/generic_fns/structure.py Modified: 1.3/generic_fns/structure.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure.py?rev=5288&r1=5287&r2=5288&view=diff ============================================================================== --- 1.3/generic_fns/structure.py (original) +++ 1.3/generic_fns/structure.py Fri Apr 4 11:14:11 2008 @@ -154,40 +154,6 @@ # Add the atom_id to the bonded_id array. atomic_data[bonded_id].append(atom_num) - - -def atomic_mass(element=None): - """Return the atomic mass of the given element. - - @param element: The name of the element to return the atomic mass of. - @type element: str - @return: The relative atomic mass. - @rtype: float - """ - - # Proton. - if element == 'H' or element == 'Q': - return ArH - - # Carbon. - elif element == 'C': - return ArC - - # Nitrogen. - elif element == 'N': - return ArN - - # Oxygen. - elif element == 'O': - return ArO - - # Sulphur. - elif element == 'S': - return ArS - - # Unknown. - else: - raise RelaxError, "The mass of the element " + `element` + " has not yet been programmed into relax." def autoscale_tensor(method='mass'):