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 9401bab commit c6788e6
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 @@ -781,7 +781,7 @@ def set_band_start_frequency(self, band_node, band_start_freq, units=""):
# convert to Hz
freq_float_in_Hz = consts.unit_converter(band_start_freq, "Freq", units, "Hz")
freq_string = "{}".format(freq_float_in_Hz)
if not (1 <= freq_float_in_Hz <= 100000000000):
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["StopFrequency"]) < freq_float_in_Hz:
stop_freq = freq_float_in_Hz + 1
Expand Down

0 comments on commit c6788e6

Please sign in to comment.