tidy3d.plugins.smatrix.run.compose_modeler_data_from_batch_data#
- class compose_modeler_data_from_batch_data[source]#
Bases:
Select the correct composer based on modeler type and create the data object.
This method acts as a dispatcher, inspecting the type of modeler to determine which composer function to invoke. It populates a ComponentModelerData object with results from a BatchData object.
- Parameters:
modeler (ComponentModelerType) β The component modeler, which can be either a ModalComponentModeler or a TerminalComponentModeler.
batch_data (BatchData) β The results obtained from running the simulation Batch.
- Returns:
The appropriate data object containing the simulation results.
- Return type:
ComponentModelerDataType
- Raises:
TypeError β If the provided modeler is not a recognized type.
Inherited Common Usage