Skip to content

Commit

Permalink
better exception error
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Sep 6, 2023
1 parent 3147a51 commit 139ac70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def quadilateral_area(v1, v2, v3, v4):
& np.isclose(np.dot(v1, v1), np.dot(v3, v3))
& np.isclose(np.dot(v1, v1), np.dot(v4, v4))
):
raise Exception("vectors provided don't have same length")
raise Exception("vectors provided must have the same length")

Check warning on line 308 in regional_mom6/regional_mom6.py

View check run for this annotation

Codecov / codecov/patch

regional_mom6/regional_mom6.py#L308

Added line #L308 was not covered by tests

R = np.sqrt(np.dot(v1, v1))

Expand Down

0 comments on commit 139ac70

Please sign in to comment.