diff --git a/docs/tutorials/01_create_accelerator.py b/docs/tutorials/01_create_accelerator.py index 5af33f8..52a02c2 100644 --- a/docs/tutorials/01_create_accelerator.py +++ b/docs/tutorials/01_create_accelerator.py @@ -97,8 +97,8 @@ from pyaml.accelerator import Accelerator -simulator._MAGNETS.pop("QF_001", None) -simulator._ALL.pop("QF_001", None) +# Recreate the simulator since the accelerator will handle the attachment +simulator = Simulator(name="design", lattice=lattice_file) accelerator = Accelerator( facility="pyAML_test_facility",