tidy3d.plugins.smatrix.run.compose_modeler_data#
- class compose_modeler_data[source]#
Bases:
Create a modeler data object from a modeler and indexed simulation data.
This function acts as a dispatcher, creating either a ModalComponentModelerData or TerminalComponentModelerData object based on the type of the input modeler.
- Parameters:
modeler (ModalComponentModeler | TerminalComponentModeler) β The component modeler for which to create the data object.
indexed_sim_data (SimulationDataMap) β A map of simulation data indexed by port names.
- 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