Description, motivation and use case
Today Element.set_energy() just set the $B\rho$ but does not recompute and apply power supply setpoints.
It would be useful for ramp machine that changing the $B\rho$ also apply power supply setpoint.
Proposed solution
Add an apply_flag to the Element.set_energy() method with a default to true.
In MagnetModel.set_magnet_rigidity() , apply setpoint when apply_flag=True.
Change the $B\rho$ initialisation phase using Element.set_energy(E,apply_flag=False)
Description, motivation and use case$B\rho$ but does not recompute and apply power supply setpoints.$B\rho$ also apply power supply setpoint.
Today
Element.set_energy()just set theIt would be useful for ramp machine that changing the
Proposed solution$B\rho$ initialisation phase using
Add an apply_flag to the
Element.set_energy()method with a default to true.In
MagnetModel.set_magnet_rigidity(), apply setpoint whenapply_flag=True.Change the
Element.set_energy(E,apply_flag=False)