@@ -78,7 +78,7 @@ class TerminalComponentModelerData(Tidy3dBaseModel):
78
78
@cached_property
79
79
def smatrix (self ) -> MicrowaveSMatrixData :
80
80
"Stores the computed S-matrix and reference impedances for the terminal ports"
81
- from tidy3d .plugins .smatrix .local_run import construct_smatrix
81
+ from tidy3d .plugins .smatrix .run . local_run import construct_smatrix
82
82
83
83
terminal_port_data = construct_smatrix (simulation = self .simulation )
84
84
smatrix_data = MicrowaveSMatrixData (data = terminal_port_data )
@@ -141,7 +141,7 @@ def get_antenna_metrics_data(
141
141
Container with antenna parameters including directivity, gain, and radiation efficiency,
142
142
computed from the superposition of fields from all excited ports.
143
143
"""
144
- from tidy3d .plugins .smatrix .local_run import compute_power_wave_amplitudes_at_each_port
144
+ from tidy3d .plugins .smatrix .run . local_run import compute_power_wave_amplitudes_at_each_port
145
145
146
146
# Use the first port as default if none specified
147
147
if port_amplitudes is None :
@@ -210,18 +210,21 @@ def get_antenna_metrics_data(
210
210
@cached_property
211
211
def port_reference_impedances (self ) -> PortDataArray :
212
212
"""The reference impedance used at each port for definining power wave amplitudes."""
213
- from tidy3d .plugins .smatrix .local_run import port_reference_impedances
213
+ from tidy3d .plugins .smatrix .run . local_run import port_reference_impedances
214
214
215
215
return port_reference_impedances (self .simulation )
216
216
217
217
def compute_power_wave_amplitudes_at_each_port (
218
218
self , port_reference_impedances : PortDataArray , sim_data : SimulationData
219
219
) -> tuple [PortDataArray , PortDataArray ]:
220
- from tidy3d .plugins .smatrix .local_run import compute_power_wave_amplitudes_at_each_port
220
+ from tidy3d .plugins .smatrix .run . local_run import compute_power_wave_amplitudes_at_each_port
221
221
222
222
data = compute_power_wave_amplitudes_at_each_port (
223
223
simulation = self .simulation ,
224
224
port_reference_impedances = port_reference_impedances ,
225
225
sim_data = sim_data ,
226
226
)
227
227
return data
228
+
229
+ # Mirror Utils
230
+ # So they can be reused elsewhere without a class reimport
0 commit comments