Skip to content

Commit

Permalink
Update pyaedt/modeler/circuits/PrimitivesEmit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys authored Nov 24, 2023
1 parent 97a0d41 commit 1964d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyaedt/modeler/circuits/PrimitivesEmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def set_band_stop_frequency(self, band_node, band_stop_freq, units=""):
freq_float_in_Hz = consts.unit_converter(band_stop_freq, "Freq", units, "Hz")
if not (1 <= freq_float_in_Hz <= 100000000000): # pragma: no cover
raise ValueError("Frequency should be within 1Hz to 100 GHz.")
if float(band_node.props["StartFrequency"]) > freq_float_in_Hz:
if float(band_node.props["StartFrequency"]) > freq_float_in_Hz: # pragma: no cover
if freq_float_in_Hz > 1:
band_node._set_prop_value({"StartFrequency": str(freq_float_in_Hz - 1)})
else:
Expand Down

0 comments on commit 1964d24

Please sign in to comment.