transfer_matrix_factory module
Provide an easy way to generate TransferMatrix.
- class TransferMatrixFactoryEnvelope3D(is_3d)[source]
Bases:
TransferMatrixFactoryProvide a method for easy creation of
TransferMatrix.- Parameters:
is_3d (
bool)
- _preprocess(single_elt_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 (
ndarray) – Cumulated transfer matrix at beginning ofListOfElementsunder study.single_elts_results (
list[dict[str,Any]]) – Results of the solver.element_to_index (
ELEMENT_TO_INDEX_T)
- Return type:
- Returns:
All cumulated transfer matrices in all the planes.
- _abc_impl = <_abc._abc_data object at 0x7318f9f6ec80>