from conjuror.plans.truebeam import OpenField, TrueBeamMachine

# Create and compute the open field
procedure = OpenField(x1=-50, x2=50, y1=-100, y2=100, mu=100)
machine = TrueBeamMachine(mlc_is_hd=False)
procedure.compute(machine)
beam = procedure.beams[0]

# Generate MLC animation
beam.animate_mlc(show=False)