def test_Ellipse2D_circular():
 amplitude = 7.5
 radius = 10
 size = ((radius * 2) + 1)
 (y, x) = np.mgrid[0:size, 0:size]
 ellipse = models.Ellipse2D(amplitude, radius, radius, radius, radius, theta=0)(x, y)
 disk = models.Disk2D(amplitude, radius, radius, radius)(x, y)
 assert np.all((ellipse == disk))

def test_Ellipse2D_circular ( ) : amplitude = 7.5 radius = 10 size = ( ( radius * 2 ) + 1 ) ( y , x ) = np . mgrid [ 0 : size , 0 : size ] ellipse = models . Ellipse2D ( amplitude , radius , radius , radius , radius , theta = 0 ) ( x , y ) disk = models . Disk2D ( amplitude , radius , radius , radius ) ( x , y ) assert np . all ( ( ellipse == disk ) )
test that circular ellipse2d agrees with disk2d [3736] .