field_map_1100 module

Define a field map with 1D rf electro-magnetic field.

class FieldMap1100(*args, **kwargs)[source]

Bases: FieldMap

1D rf electro-magnetic field.

Just inherit from the classic FieldMap; we override the to_line to also update k_b (keep k_e == k_b).

__init__(*args, **kwargs)[source]

Init the same object as FieldMap100.

to_line(which_phase, *args, inplace=False, **kwargs)[source]

Convert the object back into a line in the DAT file.

Parameters:
  • which_phase (Literal['phi_0_abs', 'phi_0_rel', 'phi_s'] | Literal['as_in_original_dat'] | Literal['as_in_settings']) – Which phase should be put in the output DAT.

  • inplace (bool, default: False) – To modify the Element inplace. The default is False, in which case, we return a modified copy.

Return type:

list[str]

Returns:

The line in the DAT, with updated amplitude and phase from current object.

_abc_impl = <_abc._abc_data object at 0x75e5173ef600>