Skip to content

Commit

Permalink
add period to ZeroDivisionError message
Browse files Browse the repository at this point in the history
  • Loading branch information
John Lambert committed Jun 30, 2021
1 parent bc72466 commit c792207
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 @@ -175,7 +175,7 @@ def from_json(cls, json_fpath: _PathLike) -> "Sim2":
def from_matrix(cls, T: np.ndarray) -> "Sim2":
"""Generate class instance from a 3x3 Numpy matrix."""
if np.isclose(T[2, 2], 0.0):
raise ZeroDivisionError("Sim(2) scale calculation would lead to division by zero")
raise ZeroDivisionError("Sim(2) scale calculation would lead to division by zero.")

R = T[:2, :2]
t = T[:2, 2]
Expand Down

0 comments on commit c792207

Please sign in to comment.