# test_Magnet_Type_15_meth (method)¶

comp_surface_analytical(slot)[source]

compute the magnet surface analytically based on integration of magnet height over magnet (half) width magnet height: h(y) = sqrt(Rtop**2 - y**2) + x0 - sqrt(Rbottom**2 - y**2)

class Test_Magnet_Type_15_meth[source]

Bases: object

unittest for MagnetType15 methods

test_comp_surface(test_dict)[source]

Check that the computation of the surface is correct

pytestmark = [Mark(name='METHODS', args=(), kwargs={})]
test_comp_height(test_dict)[source]

Check that the computation of the height is correct

test_comp_angle_op(test_dict)[source]

Check that the computation of the opening angle is correct

test_build_geometry()[source]

check that curve_list is correct