Skip to content

Commit

Permalink
black format
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Sep 4, 2023
1 parent d8cc53c commit 1ff6492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_grid_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@
([1, 0, 0], [1, 1, 0], [0, 1, 1], np.pi / 4),
],
)

def test_angle_between(v1, v2, v3, true_angle):
assert np.isclose(angle_between(v1, v2, v3), true_angle)


# create a lat-lon mesh that covers 1/4 of the North Hemisphere
lon1, lat1 = np.meshgrid(np.linspace(0, 90, 5), np.linspace(0, 90, 5))

# create a lat-lon mesh that covers 1/4 of the whole globe
lon2, lat2 = np.meshgrid(np.linspace(-45, 45, 5), np.linspace(-90, 90, 5))


@pytest.mark.parametrize(
("lat", "lon", "true_area"),
[
Expand Down

0 comments on commit 1ff6492

Please sign in to comment.