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