Exemplo n.º 1
0
def test_util_FWHM_getset():
    g1 = Voigt(legacy=False)
    g1.FWHM = 1.0
    assert_allclose(g1.FWHM, 1.0)
Exemplo n.º 2
0
def test_util_FWHM_set():
    g1 = Voigt(legacy=False)
    g1.FWHM = 1.0
    assert_allclose(g1.sigma.value, 1.0 / (2 * np.sqrt(2 * np.log(2))))