def test_voigt_model():
 m = models.Voigt1D(x_0=5, amplitude_L=10, fwhm_L=0.5, fwhm_G=0.9)
 x = np.arange(0, 10, 0.01)
 y = m(x)
 assert (y[500] == y.max())

def test_voigt_model ( ) : m = models . Voigt1D ( x_0 = 5 , amplitude_L = 10 , fwhm_L = 0.5 , fwhm_G = 0.9 ) x = np . arange ( 0 , 10 , 0.01 ) y = m ( x ) assert ( y [ 500 ] == y . max ( ) )
currently just tests that the model peaks at its origin .