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:
Return type:

None

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.

Note

We should not encounter any SuperposedFieldMap, as the SuperposeMap commands should be after this Freq. In other words, the FieldMap instances are not superposed yet.

Parameters:
Return type:

list[Instruction]

_abc_impl = <_abc._abc_data object at 0x7318fb808280>