 layers in COMPONENTS.items():
            for material_name, thickness in layers:
                if material_name == &#39;solarblack&#39;:
                    material_name = self.solarblack
                if material_name in material_thickness.keys():
                    material_thickness[material_name] += thickness.to(&#39;mm&#39;)
                else:
                    material_thickness[material_name] = thickness.to(&#39;mm&#39;)
        res = {}
        for name, thickness in material_thickness.