From 4672fe0fa322e6e63d8e1d450bac18c6e2e5b740 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 21:36:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- sunglass/run_calculation.py | 12 ++++++------ sunglass/solar_cells.py | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sunglass/run_calculation.py b/sunglass/run_calculation.py index 554af0f..12309dc 100644 --- a/sunglass/run_calculation.py +++ b/sunglass/run_calculation.py @@ -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] @@ -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] diff --git a/sunglass/solar_cells.py b/sunglass/solar_cells.py index 4d2e9d8..7b9341f 100644 --- a/sunglass/solar_cells.py +++ b/sunglass/solar_cells.py @@ -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 = ""