From 1964d241126888084cac2e161c56315a2f837d9f Mon Sep 17 00:00:00 2001 From: Samuel Lopez <85613111+Samuelopez-ansys@users.noreply.github.com> Date: Fri, 24 Nov 2023 08:42:15 +0100 Subject: [PATCH] Update pyaedt/modeler/circuits/PrimitivesEmit.py --- pyaedt/modeler/circuits/PrimitivesEmit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyaedt/modeler/circuits/PrimitivesEmit.py b/pyaedt/modeler/circuits/PrimitivesEmit.py index e10e23c0206..6f176c653f0 100644 --- a/pyaedt/modeler/circuits/PrimitivesEmit.py +++ b/pyaedt/modeler/circuits/PrimitivesEmit.py @@ -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: