Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikKok committed Jul 18, 2023
1 parent 2a9be03 commit 9e23ccb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_regrid/test_structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_overlap_1d(
assert np.array_equal(source[sorter], np.array([0, 0, 1, 1]))
assert np.array_equal(target[sorter], np.array([0, 1, 1, 2]))
assert np.array_equal(weights[sorter], np.array([17.5, 32.5, 17.5, 25.0]))

# relative
# --------
# source targets weight
Expand All @@ -80,7 +80,9 @@ def test_overlap_1d(
sorter = np.argsort(source)
assert np.array_equal(source[sorter], np.array([0, 0, 1, 1]))
assert np.array_equal(target[sorter], np.array([0, 1, 1, 2]))
assert np.array_equal(weights[sorter], np.array([17.5/50.0, 32.5/50.0, 17.5/50.0, 25.0/50.0]))
assert np.array_equal(
weights[sorter], np.array([17.5 / 50.0, 32.5 / 50.0, 17.5 / 50.0, 25.0 / 50.0])
)


def test_overlap_2d(grid_data_a_2d, grid_data_b_2d):
Expand Down

0 comments on commit 9e23ccb

Please sign in to comment.