set_sync_phase module
Define the SET_SYNC_PHASE command.
Todo
Should also modify RFQ_CEL, CAVSIN, NCELLS according to doc.
- class SetSyncPhase(line, dat_idx=None, **kwargs)[source]
Bases:
CommandA class that modifies reference phase of next cavity.
- set_influenced_elements(instructions, **kwargs)[source]
Capture first cavity after this command.
- Parameters:
instructions (
Sequence[Instruction])kwargs (
float)
- Return type:
- apply(instructions, **kwargs)[source]
Set
phi_s, remove previous reference phase.When we apply this method, LightWin believes that the phase given in the
DATfile is an absolute or relative phase. We update thereferenceof theCavitySettings, as well as the actual value ofphi_ref == phi_s.- Parameters:
instructions (
Sequence[Instruction])kwargs (
float)
- Return type:
- to_line(*args, which_phase, **kwargs)[source]
Return the command, commented if output phase should not be phi_s.
Note
We keep old implementation for now. But this method returns nothing because the
to_linemethod ofFieldMapalready handles adding aSET_SYNC_PHASEwhen necessary.
- _abc_impl = <_abc._abc_data object at 0x7318fb80ac00>