Beispiel #1
0
def test_util_gwidth_getset():
    g1 = Voigt(legacy=False)
    g1.gwidth = 1.0
    assert_allclose(g1.gwidth, 1.0)
Beispiel #2
0
def test_util_gwidth_set():
    g1 = Voigt(legacy=False)
    g1.gwidth = 1.0
    assert_allclose(g1.sigma.value, 1.0 / (2 * np.sqrt(2 * np.log(2))))