From 2810bace85877090713790d57a9aa2a59ccc4892 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 04:41:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- weldx/asdf/util.py | 2 +- weldx/welding/groove/iso_9692_1.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)