transfer_matrix_factory module
Provide an easy way to generate TransferMatrix.
- class TransferMatrixFactoryEnvelope1D(is_3d)[source]
Bases:
TransferMatrixFactoryProvide a method for easy creation of
TransferMatrix.- Parameters:
is_3d (
bool)
- _preprocess(single_elts_results)[source]
Preprocess the data given by the
BeamCalculator.
- run(first_cumulated_transfer_matrix, single_elts_results, element_to_index)[source]
Create the transfer matrix from a simulation.
- Parameters:
first_cumulated_transfer_matrix (numpy.ndarray) – Cumulated transfer matrix at beginning of
ListOfElementsunder study.single_elts_results (list[dict[str, Any]]) – Results of the solver.
element_to_index (
Callable)
- Returns:
Holds all cumulated transfer matrices in all the planes.
- Return type:
- _abc_impl = <_abc._abc_data object at 0x73dca80b3f40>