Skip to content

Commit

Permalink
fix: indexing bugs from new shift functions
Browse files Browse the repository at this point in the history
  • Loading branch information
skhrg committed Jan 28, 2024
1 parent 7a92115 commit ba78497
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions megham/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ def get_rigid(

if row_basis:
rot = rot.T
else:
shift = shift[..., np.newaxis]
shift = shift[:, 0]

return rot, shift

Expand Down Expand Up @@ -235,8 +234,7 @@ def get_affine(

if row_basis:
affine = affine.T
else:
shift = shift[..., np.newaxis]
shift = shift[:, 0]

return affine, shift

Expand Down

0 comments on commit ba78497

Please sign in to comment.