Skip to content

Commit d2155a8

Browse files
committed
black and pulint formatting
1 parent 0f5e015 commit d2155a8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

mhkit/tests/river/test_io_d3d.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,16 @@ def test_turbulent_intensity(self):
296296
ucx = river.io.d3d.get_all_data_points(data, "ucx", time_index)
297297
ucx_size = np.size(ucx["ucx"])
298298
self.assertEqual(TI_size, ucx_size)
299-
299+
300300
def test_calculate_grid_convergence_index(self):
301301
fine_grid = np.array([1.0, 2.0, 3.0])
302302
coarse_grid = np.array([0.5, 1.5, 2.5])
303303
refinement_ratio = 2.0
304304
gci = river.io.d3d.calculate_grid_convergence_index(
305305
fine_grid, coarse_grid, refinement_ratio
306306
)
307-
self.assertAlmostEqual(gci, np.array([0.2083, 0.1042, 0.0694]))
307+
assert_array_almost_equal(gci, np.array([0.2083, 0.1042, 0.0694]), decimal=3)
308+
308309

309310
if __name__ == "__main__":
310311
unittest.main()

0 commit comments

Comments
 (0)