Skip to content

Commit

Permalink
Fix quadrilateral area exception test
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-g committed Sep 6, 2023
1 parent dccdede commit 8d45e19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_grid_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def test_quadrilateral_area(v1, v2, v3, v4, true_area):
assert np.isclose(quadrilateral_area(v1, v2, v3, v4), true_area)


v1 = latlon_to_cartesian(0, 0, R=2)
v2 = latlon_to_cartesian(90, 0, R=2)
v3 = latlon_to_cartesian(0, 90, R=2)
v4 = latlon_to_cartesian(-90, 0, R=2.1)
v1 = np.dstack(latlon_to_cartesian(0, 0, R=2))
v2 = np.dstack(latlon_to_cartesian(90, 0, R=2))
v3 = np.dstack(latlon_to_cartesian(0, 90, R=2))
v4 = np.dstack(latlon_to_cartesian(-90, 0, R=2.1))


def test_quadrilateral_area_exception():
Expand Down

0 comments on commit 8d45e19

Please sign in to comment.