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.

to_line(which_phase: Literal['phi_0_abs', 'phi_0_rel', 'phi_s', 'as_in_settings', 'as_in_original_dat'] = 'phi_0_rel', *args, inplace: bool = False, **kwargs) list[str]

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

Parameters:
  • which_phase (Literal["phi_0_abs", "phi_0_rel", "phi_s", ) – “as_in_settings”, “as_in_original_dat”] Which phase should be put in the output .dat.

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

Returns:

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

Return type:

list[str]

_abc_impl = <_abc._abc_data object at 0x7f36f968d280>