Skip to content

Commit f530bcf

Browse files
committed
ruff linting
1 parent 9c49f8e commit f530bcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

transistordatabase/gui/gui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3177,7 +3177,7 @@ def load_from_search_database_into_create_transistor(self):
31773177

31783178
# TRANSISTOR CURVES#
31793179
graph_v_ecoss = transistor_dict["graph_v_ecoss"]
3180-
if graph_v_ecoss is not None and graph_v_ecoss is not []:
3180+
if graph_v_ecoss is not None and graph_v_ecoss != []:
31813181
self.comboBox_create_transistor_added_curve_v_ecoss.addItem("V_Ecoss Curve",
31823182
{"graph_v_ecoss": np.array(graph_v_ecoss)})
31833183

@@ -3205,7 +3205,7 @@ def load_from_search_database_into_create_transistor(self):
32053205
# SWITCH CURVES#
32063206

32073207
thermal_foster_switch = transistor_switch_dict["thermal_foster"]
3208-
if thermal_foster_switch["graph_t_rthjc"] is not None and thermal_foster_switch["graph_t_rthjc"] is not []:
3208+
if thermal_foster_switch["graph_t_rthjc"] is not None and thermal_foster_switch["graph_t_rthjc"] != []:
32093209
self.comboBox_create_transistor_switch_added_curve_t_rthjc.addItem("T_Rthjc Curve", {
32103210
"graph_t_rthjc": np.array(thermal_foster_switch["graph_t_rthjc"])})
32113211

@@ -3275,7 +3275,7 @@ def load_from_search_database_into_create_transistor(self):
32753275
# DIODE CURVES #
32763276

32773277
thermal_foster_diode = transistor_diode_dict["thermal_foster"]
3278-
if thermal_foster_diode["graph_t_rthjc"] is not None and thermal_foster_diode["graph_t_rthjc"] is not []:
3278+
if thermal_foster_diode["graph_t_rthjc"] is not None and thermal_foster_diode["graph_t_rthjc"] != []:
32793279
self.comboBox_create_transistor_diode_added_curve_t_rthjc.addItem("T_Rthjc Curve", {
32803280
"graph_t_rthjc": np.array(thermal_foster_diode["graph_t_rthjc"])})
32813281

0 commit comments

Comments
 (0)