Skip to content

Commit

Permalink
Merge pull request #245 from johnwlambert/patch-1
Browse files Browse the repository at this point in the history
Use only one significant fig in Sim2 __repr__
  • Loading branch information
benjaminrwilson authored Jun 25, 2021
2 parents a431b43 + a6eca73 commit 5fb4fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argoverse/utils/sim2.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def theta_deg(self) -> float:

def __repr__(self) -> str:
"""Return a human-readable string representation of the class."""
return f"Angle (deg.): {self.theta_deg}, Trans.: {np.round(self.t_,2)}, Scale: {self.s_}"
return f"Angle (deg.): {self.theta_deg:.1f}, Trans.: {np.round(self.t_,2)}, Scale: {self.s_:.1f}"

def __eq__(self, other: object) -> bool:
"""Check for equality with other Sim(2) object."""
Expand Down

0 comments on commit 5fb4fe9

Please sign in to comment.