Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwinkler committed Nov 6, 2024
1 parent cbde204 commit 9046c7e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions weldx/transformations/local_cs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9046c7e

Please sign in to comment.