tidy3d.plugins.smatrix.run.compose_modeler_data

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:
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