From a4602e1348040a0c98c1197e15ba15a883587796 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 19:57:24 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- sunglass/materials.py | 1 - sunglass/plot.py | 2 -- sunglass/save_data.py | 2 -- 3 files changed, 5 deletions(-) diff --git a/sunglass/materials.py b/sunglass/materials.py index da4a16b..96e7774 100644 --- a/sunglass/materials.py +++ b/sunglass/materials.py @@ -96,7 +96,6 @@ def print_properties(self, *args): if __name__ == "__main__": - valid_materials = sorted(solcore.ParameterSystem().database.sections()) valid_materials.remove("Immediate Calculables") valid_materials.remove("Final Calculables") diff --git a/sunglass/plot.py b/sunglass/plot.py index 298a5a2..1c2eac8 100644 --- a/sunglass/plot.py +++ b/sunglass/plot.py @@ -54,7 +54,6 @@ def plot_dark_iv(self, data: pd.DataFrame) -> None: """ for name in data.columns.values: - # Plotting tunnel junctions IV if "J_TJ" in name: label = "Isolated {}".format(name.split("_")[1]) @@ -121,7 +120,6 @@ def plot_light_iv(self, data: pd.DataFrame, spectrum: LightSource) -> None: self.outputs["eta"] = self.outputs["mpp"] / spectrum.power_density for name in data.columns.values: - # Plotting tunnel junctions IV. Actually, we need to review this as TJ have # opposite polarity than # normal J and therefore should look more like Rs. diff --git a/sunglass/save_data.py b/sunglass/save_data.py index b7eca3a..ed0ab16 100644 --- a/sunglass/save_data.py +++ b/sunglass/save_data.py @@ -46,7 +46,6 @@ def save_qe_data(root_filename, output): qe_data = OrderedDict({"WL": output.wavelength, "R": output.reflected}) for j in range(len(output)): - # All layers and junctions have defined a fraction of absorbed light, except # some TJ and 2D kind of # junctions. We try to get that, first. @@ -84,7 +83,6 @@ def save_bandstructure_data(root_filename, output, task): tsk = "{}_data".format(task) for j in output.junction_indices: - # Only junctions have information on bandstructure, and not all the models, so # we take that into account. try: