Skip to content

Commit

Permalink
ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gituser789 committed Aug 20, 2024
1 parent 9c49f8e commit f530bcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions transistordatabase/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)})

Expand Down Expand Up @@ -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"])})

Expand Down Expand Up @@ -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"])})

Expand Down

0 comments on commit f530bcf

Please sign in to comment.