Skip to content

Commit 6ce5b98

Browse files
committed
fix terminal component modeler
1 parent 31557ad commit 6ce5b98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tidy3d/plugins/smatrix/component_modelers/terminal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ def compute_power_wave_amplitudes_at_each_port(
316316
for port_out in self.ports:
317317
V_out, I_out = self.compute_port_VI(port_out, sim_data)
318318
indexer = {"port": port_out.name}
319-
V_matrix.loc[indexer] = V_out
320-
I_matrix.loc[indexer] = I_out
319+
V_matrix = V_matrix._with_updated_data(data=V_out.data, coords=indexer)
320+
I_matrix = I_matrix._with_updated_data(data=I_out.data, coords=indexer)
321321

322322
V_numpy = V_matrix.values
323323
I_numpy = I_matrix.values

0 commit comments

Comments
 (0)