diff --git a/weldx/asdf/util.py b/weldx/asdf/util.py index 52e420a69..c7de94c57 100644 --- a/weldx/asdf/util.py +++ b/weldx/asdf/util.py @@ -770,7 +770,7 @@ def convert_wx_shape(path, key, value): if isinstance(value, dict) and ("wx_shape" in value): if isinstance(value["wx_shape"], list): value = value.copy() - value["wx_shape"] = f"[{','.join((str(n) for n in value['wx_shape']))}]" + value["wx_shape"] = f"[{','.join(str(n) for n in value['wx_shape'])}]" return key, value def mark_required(path, key, value): diff --git a/weldx/welding/groove/iso_9692_1.py b/weldx/welding/groove/iso_9692_1.py index 89e1962e4..1e734d774 100644 --- a/weldx/welding/groove/iso_9692_1.py +++ b/weldx/welding/groove/iso_9692_1.py @@ -216,7 +216,7 @@ def _compute_cross_sect_area_interpolated(self): profile = self.to_profile() rasterization = profile.rasterize(self._AREA_RASTER_WIDTH, stack=False) # skipcq: PYL-R1721 - points = [[(x, y) for x, y in shape.m.T] for shape in rasterization] + points = [list(shape.m.T) for shape in rasterization] return _compute_cross_sect_shape_points(points)