From f530bcf6c728c965e9feecf8bec06cedd2f7371d Mon Sep 17 00:00:00 2001 From: gituser789 <62549000+gituser789@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:46:43 +0200 Subject: [PATCH] ruff linting --- transistordatabase/gui/gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/transistordatabase/gui/gui.py b/transistordatabase/gui/gui.py index 8250fd8..a6d9b95 100644 --- a/transistordatabase/gui/gui.py +++ b/transistordatabase/gui/gui.py @@ -3177,7 +3177,7 @@ def load_from_search_database_into_create_transistor(self): # TRANSISTOR CURVES# graph_v_ecoss = transistor_dict["graph_v_ecoss"] - if graph_v_ecoss is not None and graph_v_ecoss is not []: + if graph_v_ecoss is not None and graph_v_ecoss != []: self.comboBox_create_transistor_added_curve_v_ecoss.addItem("V_Ecoss Curve", {"graph_v_ecoss": np.array(graph_v_ecoss)}) @@ -3205,7 +3205,7 @@ def load_from_search_database_into_create_transistor(self): # SWITCH CURVES# thermal_foster_switch = transistor_switch_dict["thermal_foster"] - if thermal_foster_switch["graph_t_rthjc"] is not None and thermal_foster_switch["graph_t_rthjc"] is not []: + if thermal_foster_switch["graph_t_rthjc"] is not None and thermal_foster_switch["graph_t_rthjc"] != []: self.comboBox_create_transistor_switch_added_curve_t_rthjc.addItem("T_Rthjc Curve", { "graph_t_rthjc": np.array(thermal_foster_switch["graph_t_rthjc"])}) @@ -3275,7 +3275,7 @@ def load_from_search_database_into_create_transistor(self): # DIODE CURVES # thermal_foster_diode = transistor_diode_dict["thermal_foster"] - if thermal_foster_diode["graph_t_rthjc"] is not None and thermal_foster_diode["graph_t_rthjc"] is not []: + if thermal_foster_diode["graph_t_rthjc"] is not None and thermal_foster_diode["graph_t_rthjc"] != []: self.comboBox_create_transistor_diode_added_curve_t_rthjc.addItem("T_Rthjc Curve", { "graph_t_rthjc": np.array(thermal_foster_diode["graph_t_rthjc"])})