Skip to content

Commit 41c8482

Browse files
think we need to break backwards compatiblity
1 parent 257c060 commit 41c8482

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tidy3d/plugins/smatrix/component_modelers/terminal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ def _check_port_impedance_sign(Z_numpy: np.ndarray):
346346

347347
return _check_port_impedance_sign(Z_numpy)
348348

349+
@staticmethod
349350
def _compute_F(Z_numpy: np.array):
350351
"""Helper to convert port impedance matrix to F, which is used for
351352
computing generalized scattering parameters."""

tidy3d/plugins/smatrix/run.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ def compute_power_wave_amplitudes_at_each_port(
111111

112112
def _internal_construct_smatrix(simulation, batch_data: typing.Any = None) -> TerminalPortDataArray:
113113
"""Post process :class:`.BatchData` to generate scattering matrix, for internal use only."""
114-
if batch_data:
115-
pass
116-
else:
114+
if batch_data is None:
117115
batch_data = simulation.batch_data
118116

119117
from tidy3d.plugins.smatrix.utils import ab_to_s

0 commit comments

Comments
 (0)