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 = ""