Skip to content

Commit f507760

Browse files
committed
fix: update structured grid maximum test
1 parent 23c7d50 commit f507760

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/datatypes/test__structured_grid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ def test_structured_grid_to_dict():
3030

3131
def test_structured_grid_maximum():
3232
origin = np.array([0, 0, 0])
33+
expected_maximum = np.array([9, 9, 9])
3334
nsteps = np.array([10, 10, 10])
3435
step_vector = np.array([1, 1, 1])
36+
3537

3638
grid = StructuredGrid(
3739
origin=origin,
@@ -42,8 +44,6 @@ def test_structured_grid_maximum():
4244
name=None,
4345
)
4446
maximum = grid.maximum
45-
46-
expected_maximum = origin + nsteps * step_vector
4747
assert np.array_equal(maximum, expected_maximum)
4848

4949

0 commit comments

Comments
 (0)