core.elements.field_maps.field_map_1100 module

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

class FieldMap1100(*args, **kwargs)

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) None

Init the same object as FieldMap100.

_abc_impl = <_abc._abc_data object>
to_line(which_phase: str = 'phi_0_rel', *args, inplace: bool = False, **kwargs) list[str]

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

Parameters:
  • which_phase ({'phi_0_abs', 'phi_0_rel', 'phi_s', 'as_in_settings',) – ‘as_in_original_dat’} Which phase should be putted in the output .dat.

  • inplace (bool, optional) – To modify or not the Element inplace. If False, we return a modified copy. The default is False.

Returns:

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

Return type:

list[str]