transfer_matrix_factory module

Provide an easy way to generate TransferMatrix.

class TransferMatrixFactoryEnvelope3D(is_3d)[source]

Bases: TransferMatrixFactory

Provide a method for easy creation of TransferMatrix.

Parameters:

is_3d (bool)

_preprocess(single_elt_results)[source]

Preprocess the data given by the BeamCalculator.

Parameters:

single_elt_results (list[dict[str, Any]])

Return type:

ndarray

run(first_cumulated_transfer_matrix, single_elts_results, element_to_index)[source]

Create the transfer matrix from a simulation.

Parameters:
Return type:

TransferMatrix

Returns:

All cumulated transfer matrices in all the planes.

_abc_impl = <_abc._abc_data object at 0x7318f9f6ec80>