Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ring630 committed Nov 6, 2023
1 parent c932e28 commit 665daf3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions _unittest/test_00_EDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -2292,9 +2292,9 @@ def test_131_siwave_ac_simulation_setup(self):
assert not sweep.enforce_dc_and_causality
assert sweep.enforce_passivity
assert sweep.freq_sweep_type == "kInterpolatingSweep"
assert sweep.interp_use_full_basis
assert sweep.interp_use_port_impedance
assert sweep.interp_use_prop_const
assert sweep.interpolation_use_full_basis
assert sweep.interpolation_use_port_impedance
assert sweep.interpolation_use_prop_const
assert sweep.max_solutions == 250
assert sweep.min_freq_s_mat_only_solve == "1MHz"
assert not sweep.min_solved_freq
Expand All @@ -2312,9 +2312,9 @@ def test_131_siwave_ac_simulation_setup(self):
sweep.enforce_dc_and_causality = True
sweep.enforce_passivity = False
sweep.freq_sweep_type = "kDiscreteSweep"
sweep.interp_use_full_basis = False
sweep.interp_use_port_impedance = False
sweep.interp_use_prop_const = False
sweep.interpolation_use_full_basis = False
sweep.interpolation_use_port_impedance = False
sweep.interpolation_use_prop_const = False
sweep.max_solutions = 200
sweep.min_freq_s_mat_only_solve = "2MHz"
sweep.min_solved_freq = "1Hz"
Expand All @@ -2332,9 +2332,9 @@ def test_131_siwave_ac_simulation_setup(self):
assert sweep.enforce_dc_and_causality
assert not sweep.enforce_passivity
assert sweep.freq_sweep_type == "kDiscreteSweep"
assert not sweep.interp_use_full_basis
assert not sweep.interp_use_port_impedance
assert not sweep.interp_use_prop_const
assert not sweep.interpolation_use_full_basis
assert not sweep.interpolation_use_port_impedance
assert not sweep.interpolation_use_prop_const
assert sweep.max_solutions == 200
assert sweep.min_freq_s_mat_only_solve == "2MHz"
assert sweep.min_solved_freq == "1Hz"
Expand Down
22 changes: 11 additions & 11 deletions pyaedt/edb_core/edb_data/simulation_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def interpolation_use_full_basis(self):
return self._edb_sweep_data.InterpUseFullBasis

@property
def interp_use_port_impedance(self):
def interpolation_use_port_impedance(self):
"""Whether to turn on the port impedance interpolation.
Returns
Expand All @@ -395,7 +395,7 @@ def interp_use_port_impedance(self):
return self._edb_sweep_data.InterpUsePortImpedance

@property
def interp_use_prop_const(self):
def interpolation_use_prop_const(self):
"""Flag indicating if propagation constants are used.
Returns
Expand All @@ -406,7 +406,7 @@ def interp_use_prop_const(self):
return self._edb_sweep_data.InterpUsePropConst

@property
def interp_use_s_matrix(self):
def interpolation_use_s_matrix(self):
"""Flag indicating if the S matrix is used.
Returns
Expand Down Expand Up @@ -545,23 +545,23 @@ def freq_sweep_type(self, value):
self._edb_sweep_data.FreqSweepType = edb_freq_sweep_type.kNumSweepTypes

Check warning on line 545 in pyaedt/edb_core/edb_data/simulation_setup.py

View check run for this annotation

Codecov / codecov/patch

pyaedt/edb_core/edb_data/simulation_setup.py#L542-L545

Added lines #L542 - L545 were not covered by tests
self._edb_sweep_data.FreqSweepType.ToString()

@interp_use_full_basis.setter
def interp_use_full_basis(self, value):
@interpolation_use_full_basis.setter
def interpolation_use_full_basis(self, value):
self._edb_sweep_data.InterpUseFullBasis = value
self._update_sweep()

@interp_use_port_impedance.setter
def interp_use_port_impedance(self, value):
@interpolation_use_port_impedance.setter
def interpolation_use_port_impedance(self, value):
self._edb_sweep_data.InterpUsePortImpedance = value
self._update_sweep()

@interp_use_prop_const.setter
def interp_use_prop_const(self, value):
@interpolation_use_prop_const.setter
def interpolation_use_prop_const(self, value):
self._edb_sweep_data.InterpUsePropConst = value
self._update_sweep()

@interp_use_s_matrix.setter
def interp_use_s_matrix(self, value):
@interpolation_use_s_matrix.setter
def interpolation_use_s_matrix(self, value):
self._edb_sweep_data.InterpUseSMatrix = value
self._update_sweep()

Check warning on line 566 in pyaedt/edb_core/edb_data/simulation_setup.py

View check run for this annotation

Codecov / codecov/patch

pyaedt/edb_core/edb_data/simulation_setup.py#L565-L566

Added lines #L565 - L566 were not covered by tests

Expand Down

0 comments on commit 665daf3

Please sign in to comment.