Skip to content

Commit

Permalink
Include flip information in Rigid str method
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesra committed Mar 28, 2024
1 parent fd05eb1 commit 27c0c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nornir_imageregistration/transforms/rigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def Scale(self, scalar: float):
self.OnTransformChanged()

def __repr__(self):
return f"Offset: {self._target_offset[0]:03g}y,{self._target_offset[1]:03g}x Angle: {self.angle:03g}rad Rot Center: {self.source_space_center_of_rotation[0]:03g}y,{self.source_space_center_of_rotation[1]:03g}x"
return f"Offset: {self._target_offset[0]:03g}y,{self._target_offset[1]:03g}x Flip: {self.flip_ud} Angle: {self.angle:03g}r Rot Center: {self.source_space_center_of_rotation[0]:03g}y,{self.source_space_center_of_rotation[1]:03g}x"


class CenteredSimilarity2DTransform(Rigid, base.ITransformRelativeScaling):
Expand Down

0 comments on commit 27c0c90

Please sign in to comment.