Skip to content

Commit

Permalink
works with xarray now
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwinkler committed Nov 5, 2024
1 parent 186c178 commit 09d4e6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions weldx/transformations/local_cs.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ def from_homogeneous_transformation(
Local coordinate system
"""
if isinstance(transformation_matrix, xr.DataArray):
transformation_matrix = transformation_matrix.data
if transformation_matrix.ndim == 3:
orientation = transformation_matrix[:, :3, :3]
coordinates = Q_(transformation_matrix[:, :3, 3], translation_unit)
Expand Down

0 comments on commit 09d4e6a

Please sign in to comment.