Author: semor Date: Fri Apr 4 17:03:09 2008 New Revision: 5314 URL: http://svn.gna.org/viewcvs/relax?rev=5314&view=rev Log: Reverted changes of the variable 'nucleus' to 'heteronucleus'. The command used was: svn merge -r5308:5302 ./physical_constants.py This error was noticed by Edward d'Auvergne in a post at: https://mail.gna.org/public/relax-devel/2008-04/msg00033.html (# Message-id: <7f080ed10804040741x3e26f862r808982451ab522c8@xxxxxxxxxxxxxx>) Modified: 1.3/physical_constants.py Modified: 1.3/physical_constants.py URL: http://svn.gna.org/viewcvs/relax/1.3/physical_constants.py?rev=5314&r1=5313&r2=5314&view=diff ============================================================================== --- 1.3/physical_constants.py (original) +++ 1.3/physical_constants.py Fri Apr 4 17:03:09 2008 @@ -70,29 +70,29 @@ """The 31P gyromagnetic ratio.""" # Function for returning the desired gyromagnetic ratio. -def return_gyromagnetic_ratio(heteronuc_type=None): - """Return the gyromagnetic ratio for the given heteronucleus type. +def return_gyromagnetic_ratio(nucleus=None): + """Return the gyromagnetic ratio for the given nucleus type. - @keyword heteronuc_type: The heteronucleus type. - @type heteronucleus: str - @raises RelaxError: If the nucleus type is unknown. - @returns: The desired gyromagnetic ratio. - @rtype: float + @keyword nucleus: The nucleus type. + @type nucleus: str + @raises RelaxError: If the nucleus type is unknown. + @returns: The desired gyromagnetic ratio. + @rtype: float """ # Matching loop. - if heteronuc_type == '13C': + if nucleus == '13C': return g13C - elif heteronuc_type == '1H': + elif nucleus == '1H': return g1H - elif heteronuc_type == '15N': + elif nucleus == '15N': return g15N - elif heteronuc_type == '17O': + elif nucleus == '17O': return g17O - elif heteronuc_type == '31P': + elif nucleus == '31P': return g31P else: - raise RelaxError, "The heteronucleus type " + `heteronuc_type` + " is unknown." + raise RelaxError, "The nucleus type " + `nucleus` + " is unknown." # Relative atomic masses.