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.
- is_implemented: bool = True
- n_attributes: int | range | Collection = 0
- set_influenced_elements(instructions, **kwargs)[source]
Capture first cavity after this command.
- Parameters:
instructions (
Sequence[Instruction])kwargs (
float)
- Return type:
- apply(instructions, **kwargs)[source]
Modify reference of cavity.
- Parameters:
instructions (
list[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 0x73dca86e6780>