From 9046c7e3a52299e97f9f229ff45a828109f46528 Mon Sep 17 00:00:00 2001 From: Michael Winkler Date: Wed, 6 Nov 2024 17:04:37 +0100 Subject: [PATCH] fixed typo --- weldx/transformations/local_cs.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/weldx/transformations/local_cs.py b/weldx/transformations/local_cs.py index 54c834056..0783e24ac 100644 --- a/weldx/transformations/local_cs.py +++ b/weldx/transformations/local_cs.py @@ -578,12 +578,10 @@ def from_homogeneous_transformation( transformation_matrix = np.array(transformation_matrix.data) if transformation_matrix.ndim == 3: orientation = transformation_matrix[:, :3, :3] - coordinates = transformation_matrix[:, :3, 3] - coordinates = Q_(coordinates, translation_unit) + coordinates = Q_(transformation_matrix[:, :3, 3], translation_unit) else: orientation = transformation_matrix[:3, :3] - coordinates = transformation_matrix[:3, 3] - coordinates = Q_(coordinates, translation_unit) + coordinates = Q_(transformation_matrix[:3, 3], translation_unit) return cls(orientation, coordinates=coordinates, time=time, time_ref=time_ref) @property