mailr4376 - in /1.3: generic_fns/nuclei.py physical_constants.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 05, 2008 - 23:58:
Author: bugman
Date: Sat Jan  5 23:58:30 2008
New Revision: 4376

URL: http://svn.gna.org/viewcvs/relax?rev=4376&view=rev
Log:
Shifted all the gyromagnetic ratio values into the physical constants file.


Modified:
    1.3/generic_fns/nuclei.py
    1.3/physical_constants.py

Modified: 1.3/generic_fns/nuclei.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/nuclei.py?rev=4376&r1=4375&r2=4376&view=diff
==============================================================================
--- 1.3/generic_fns/nuclei.py (original)
+++ 1.3/generic_fns/nuclei.py Sat Jan  5 23:58:30 2008
@@ -63,39 +63,6 @@
             return 'P'
 
 
-    def gc(self):
-        """The 13C gyromagnetic ratio."""
-
-        return 6.728e7
-
-
-    def gh(self):
-        """The 1H gyromagnetic ratio."""
-
-        # Old, low precision gyromagnetic ratio.
-        #return 26.7522e7
-
-        return 26.7522212e7
-
-
-    def gn(self):
-        """The 15N gyromagnetic ratio."""
-
-        return -2.7126e7
-
-
-    def go(self):
-        """The 17O gyromagnetic ratio."""
-
-        return -3.628e7
-
-
-    def gp(self):
-        """The 31P gyromagnetic ratio."""
-
-        return 1.0841e8
-
-
     def set_values(self, heteronuc):
         """Function for setting the gyromagnetic ratio of the 
heteronucleus."""
 

Modified: 1.3/physical_constants.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/physical_constants.py?rev=4376&r1=4375&r2=4376&view=diff
==============================================================================
--- 1.3/physical_constants.py (original)
+++ 1.3/physical_constants.py Sat Jan  5 23:58:30 2008
@@ -39,3 +39,18 @@
 # The length of the NH bond (default value).
 NH_BOND_LENGTH = 1.02 * 1e-10
 
+
+# The 13C gyromagnetic ratio.
+g13C = 6.728e7
+
+# The 1H gyromagnetic ratio.
+g1H = 26.7522212e7
+
+# The 15N gyromagnetic ratio.
+g15N = -2.7126e7
+
+# The 17O gyromagnetic ratio.
+g17O = -3.628e7
+
+# The 31P gyromagnetic ratio.
+g31P = 1.0841e8




Related Messages


Powered by MHonArc, Updated Sun Jan 06 00:40:22 2008