core.commands.end module

Define a command to indicate end of the linac.

class End(line: list[str], dat_idx: int, **kwargs: str)

Bases: Command

The end of the linac.

__init__(line: list[str], dat_idx: int, **kwargs: str) None

Call mother __init__.

_abc_impl = <_abc._abc_data object>
apply(instructions: list[Instruction], **kwargs: float) list[Instruction]

Remove everything in instructions after this object.

is_implemented: bool = True
n_attributes: int | range | Collection = 0
set_influenced_elements(*args, **kwargs: float) None

Determine the index of the element concerned by apply().