gyromagnetic-ratio
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -1,2 +0,2 @@ | ||
export type Nuclei = '1H' | '2H' | '3H' | '3He' | '7Li' | '13C' | '14N' | '15N' | '17O' | '19F' | '23Na' | '27Al' | '29Si' | '31P' | '57Fe' | '63Cu' | '67Zn' | '129Xe'; | ||
export type Nuclei = '1H' | '2H' | '3H' | '3He' | '7Li' | '13C' | '14N' | '15N' | '17O' | '19F' | '23Na' | '27Al' | '29Si' | '31P' | '57Fe' | '63Cu' | '67Zn' | '129Xe' | '195Pt' | '199Hg' | '187Os' | '183W' | '125Te' | '123Te' | '119Sn' | '117Sn' | '115Sn' | '113Cd' | '111Cd' | '109Ag' | '107Ag' | '103Rh' | '89Y' | '77Se' | '203Tl' | '205Tl' | '207Pb'; | ||
type GyromagneticRatio = { | ||
@@ -3,0 +3,0 @@ [key in Nuclei]: number; |
@@ -20,2 +20,21 @@ export const gyromagneticRatio = { | ||
'129Xe': -73.997e6, | ||
'195Pt': 58.385e6, | ||
'199Hg': 48.457916e6, | ||
'187Os': 6.192895e6, | ||
'183W': 11.282403e6, | ||
'125Te': -85.108404e6, | ||
'123Te': -70.59098e6, | ||
'119Sn': -100.317e6, | ||
'117Sn': -95.8879e6, | ||
'115Sn': -88.013e6, | ||
'113Cd': -59.609155e6, | ||
'111Cd': -56.983131e6, | ||
'109Ag': -12.518634e6, | ||
'77Se': 51.253857e6, | ||
'89Y': -13.162791e6, | ||
'103Rh': -8.468e6, | ||
'107Ag': -10.889181e6, | ||
'203Tl': 155.393338e6, | ||
'205Tl': 156.921808e6, | ||
'207Pb': 55.8046e6, | ||
}; | ||
@@ -34,4 +53,5 @@ export function getGyromagneticRatio(nucleus) { | ||
for (const key in gyromagneticRatio) { | ||
if (key.includes(nucleusNumber)) | ||
if (key.replace(/[^0-9]/g, '') === nucleusNumber) { | ||
return gyromagneticRatio[key]; | ||
} | ||
} | ||
@@ -38,0 +58,0 @@ return null; |
@@ -1,2 +0,2 @@ | ||
export type Nuclei = '1H' | '2H' | '3H' | '3He' | '7Li' | '13C' | '14N' | '15N' | '17O' | '19F' | '23Na' | '27Al' | '29Si' | '31P' | '57Fe' | '63Cu' | '67Zn' | '129Xe'; | ||
export type Nuclei = '1H' | '2H' | '3H' | '3He' | '7Li' | '13C' | '14N' | '15N' | '17O' | '19F' | '23Na' | '27Al' | '29Si' | '31P' | '57Fe' | '63Cu' | '67Zn' | '129Xe' | '195Pt' | '199Hg' | '187Os' | '183W' | '125Te' | '123Te' | '119Sn' | '117Sn' | '115Sn' | '113Cd' | '111Cd' | '109Ag' | '107Ag' | '103Rh' | '89Y' | '77Se' | '203Tl' | '205Tl' | '207Pb'; | ||
type GyromagneticRatio = { | ||
@@ -3,0 +3,0 @@ [key in Nuclei]: number; |
@@ -23,2 +23,21 @@ "use strict"; | ||
'129Xe': -73.997e6, | ||
'195Pt': 58.385e6, | ||
'199Hg': 48.457916e6, | ||
'187Os': 6.192895e6, | ||
'183W': 11.282403e6, | ||
'125Te': -85.108404e6, | ||
'123Te': -70.59098e6, | ||
'119Sn': -100.317e6, | ||
'117Sn': -95.8879e6, | ||
'115Sn': -88.013e6, | ||
'113Cd': -59.609155e6, | ||
'111Cd': -56.983131e6, | ||
'109Ag': -12.518634e6, | ||
'77Se': 51.253857e6, | ||
'89Y': -13.162791e6, | ||
'103Rh': -8.468e6, | ||
'107Ag': -10.889181e6, | ||
'203Tl': 155.393338e6, | ||
'205Tl': 156.921808e6, | ||
'207Pb': 55.8046e6, | ||
}; | ||
@@ -37,4 +56,5 @@ function getGyromagneticRatio(nucleus) { | ||
for (const key in exports.gyromagneticRatio) { | ||
if (key.includes(nucleusNumber)) | ||
if (key.replace(/[^0-9]/g, '') === nucleusNumber) { | ||
return exports.gyromagneticRatio[key]; | ||
} | ||
} | ||
@@ -41,0 +61,0 @@ return null; |
{ | ||
"name": "gyromagnetic-ratio", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Reference values for gyromagnetic ratio", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -8,3 +8,4 @@ # gyromagnetic-ratio | ||
Reference values for gyromagnetic ratio. | ||
Reference values for gyromagnetic ratio in $rad \over Ts $ extracted from: | ||
- [NMR nomenclature. Nuclear spin properties and conventions for chemical shifts(IUPAC Recommendations 2001)](https://dx.doi.org/10.1351/pac200173111795). | ||
@@ -11,0 +12,0 @@ ## Installation |
@@ -19,3 +19,22 @@ export type Nuclei = | ||
| '67Zn' | ||
| '129Xe'; | ||
| '129Xe' | ||
| '195Pt' | ||
| '199Hg' | ||
| '187Os' | ||
| '183W' | ||
| '125Te' | ||
| '123Te' | ||
| '119Sn' | ||
| '117Sn' | ||
| '115Sn' | ||
| '113Cd' | ||
| '111Cd' | ||
| '109Ag' | ||
| '107Ag' | ||
| '103Rh' | ||
| '89Y' | ||
| '77Se' | ||
| '203Tl' | ||
| '205Tl' | ||
| '207Pb'; | ||
@@ -45,2 +64,21 @@ type GyromagneticRatio = { | ||
'129Xe': -73.997e6, | ||
'195Pt': 58.385e6, | ||
'199Hg': 48.457916e6, | ||
'187Os': 6.192895e6, | ||
'183W': 11.282403e6, | ||
'125Te': -85.108404e6, | ||
'123Te': -70.59098e6, | ||
'119Sn': -100.317e6, | ||
'117Sn': -95.8879e6, | ||
'115Sn': -88.013e6, | ||
'113Cd': -59.609155e6, | ||
'111Cd': -56.983131e6, | ||
'109Ag': -12.518634e6, | ||
'77Se': 51.253857e6, | ||
'89Y': -13.162791e6, | ||
'103Rh': -8.468e6, | ||
'107Ag': -10.889181e6, | ||
'203Tl': 155.393338e6, | ||
'205Tl': 156.921808e6, | ||
'207Pb': 55.8046e6, | ||
}; | ||
@@ -60,3 +98,5 @@ | ||
for (const key in gyromagneticRatio) { | ||
if (key.includes(nucleusNumber)) return gyromagneticRatio[key as Nuclei]; | ||
if (key.replace(/[^0-9]/g, '') === nucleusNumber) { | ||
return gyromagneticRatio[key as Nuclei]; | ||
} | ||
} | ||
@@ -63,0 +103,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14547
230
38