Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 15, 2024
1 parent 56093c5 commit fc712b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions sunglass/run_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def run_solar_cell_model(task, model):
# units
for key in current_element["options"]:
if key in ["element", "x"]:
layer_properties[
current_element["options"]["element"]
] = current_element["options"]["x"]
layer_properties[current_element["options"]["element"]] = (
current_element["options"]["x"]
)
else:
layer_properties[key] = (
current_element["options"][key] * ps.conversion[key]
Expand Down Expand Up @@ -122,9 +122,9 @@ def run_solar_cell_model(task, model):
# units
for key in current_child["options"]:
if key in ["element", "x"]:
layer_properties[
current_child["options"]["element"]
] = current_child["options"]["x"]
layer_properties[current_child["options"]["element"]] = (
current_child["options"]["x"]
)
else:
layer_properties[key] = (
current_child["options"][key] * ps.conversion[key]
Expand Down
6 changes: 3 additions & 3 deletions sunglass/solar_cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ def confirm_changes_to_junction(self, *args):
"""
item_id = self.solar_cell_list.focus()

junction_type = self.model["Solar cell"][item_id][
"name"
] = self.junction_type_var.get()
junction_type = self.model["Solar cell"][item_id]["name"] = (
self.junction_type_var.get()
)
name = self.model["Solar cell"][item_id]["name"] = self.junction_name_var.get()

options = ""
Expand Down

0 comments on commit fc712b7

Please sign in to comment.