Skip to content

Commit

Permalink
Bug fix: Check if any (not all) origins do not match origin_out in tr…
Browse files Browse the repository at this point in the history
…ansform_coordinates
  • Loading branch information
moeyensj committed Aug 24, 2023
1 parent b9c6aa5 commit 2e785a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adam_core/coordinates/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,8 +1350,8 @@ def transform_coordinates(
else:
cartesian = coords

# Translate coordinates to new origin (if different from current)
if np.all(cartesian.origin != origin_out):
# Translate coordinates to new origin (if any are different from current)
if np.any(cartesian.origin != origin_out):
cartesian = cartesian_to_origin(cartesian, origin_out)

# Rotate coordinates to new frame (if different from current)
Expand Down

0 comments on commit 2e785a1

Please sign in to comment.