We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31557ad commit 6ce5b98Copy full SHA for 6ce5b98
tidy3d/plugins/smatrix/component_modelers/terminal.py
@@ -316,8 +316,8 @@ def compute_power_wave_amplitudes_at_each_port(
316
for port_out in self.ports:
317
V_out, I_out = self.compute_port_VI(port_out, sim_data)
318
indexer = {"port": port_out.name}
319
- V_matrix.loc[indexer] = V_out
320
- I_matrix.loc[indexer] = I_out
+ V_matrix = V_matrix._with_updated_data(data=V_out.data, coords=indexer)
+ I_matrix = I_matrix._with_updated_data(data=I_out.data, coords=indexer)
321
322
V_numpy = V_matrix.values
323
I_numpy = I_matrix.values
0 commit comments