freq module

Define a command to set frequency.

class Freq(line, dat_idx=None, **kwargs)[source]

Bases: Command

Used to get the frequency of every Section.

Parameters:
is_implemented: bool = True
n_attributes: int | range | Collection = 1
__init__(line, dat_idx=None, **kwargs)[source]

Save frequency as attribute.

Parameters:
set_influenced_elements(instructions, **kwargs)[source]

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

Parameters:
Return type:

None

apply(instructions, freq_bunch=None, **kwargs)[source]

Set FieldMap frequency.

If another Freq is found, we stop and the new Freq will be dealt with later.

Parameters:
Return type:

list[Instruction]

_abc_impl = <_abc._abc_data object at 0x70e253b17080>