Skip to content

Commit

Permalink
black formating
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Sep 6, 2023
1 parent d091f32 commit a18ff47
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,12 @@ def quadilateral_area(v1, v2, v3, v4):
orientation is implied). The area is computed as the excess of the
sum of the spherical angles of the quadrilateral from 2π."""

if not (np.isclose(np.dot(v1, v1), np.dot(v2, v2)) &
np.isclose(np.dot(v1, v1), np.dot(v2, v2)) &
np.isclose(np.dot(v1, v1), np.dot(v3, v3)) &
np.isclose(np.dot(v1, v1), np.dot(v4, v4))):
if not (
np.isclose(np.dot(v1, v1), np.dot(v2, v2))
& np.isclose(np.dot(v1, v1), np.dot(v2, v2))
& 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")

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 a18ff47

Please sign in to comment.