File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -346,6 +346,7 @@ def _check_port_impedance_sign(Z_numpy: np.ndarray):
346
346
347
347
return _check_port_impedance_sign (Z_numpy )
348
348
349
+ @staticmethod
349
350
def _compute_F (Z_numpy : np .array ):
350
351
"""Helper to convert port impedance matrix to F, which is used for
351
352
computing generalized scattering parameters."""
Original file line number Diff line number Diff line change @@ -111,9 +111,7 @@ def compute_power_wave_amplitudes_at_each_port(
111
111
112
112
def _internal_construct_smatrix (simulation , batch_data : typing .Any = None ) -> TerminalPortDataArray :
113
113
"""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 :
117
115
batch_data = simulation .batch_data
118
116
119
117
from tidy3d .plugins .smatrix .utils import ab_to_s
You can’t perform that action at this time.
0 commit comments