From b3125127f19b331e4853e83c9e32e22deb126250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lennart=20Sch=C3=BCler?= Date: Fri, 10 Nov 2023 12:45:16 +0200 Subject: [PATCH] Black --- tests/test_fouriergen.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/test_fouriergen.py b/tests/test_fouriergen.py index 75811a5f..5f281317 100644 --- a/tests/test_fouriergen.py +++ b/tests/test_fouriergen.py @@ -14,9 +14,9 @@ class TestFourier(unittest.TestCase): def setUp(self): self.seed = 19900408 - self.cov_model_1d = gs.Gaussian(dim=1, var=0.5, len_scale=10.) - self.cov_model_2d = gs.Gaussian(dim=2, var=2.0, len_scale=30.) - self.cov_model_3d = gs.Gaussian(dim=3, var=2.1, len_scale=21.) + self.cov_model_1d = gs.Gaussian(dim=1, var=0.5, len_scale=10.0) + self.cov_model_2d = gs.Gaussian(dim=2, var=2.0, len_scale=30.0) + self.cov_model_3d = gs.Gaussian(dim=3, var=2.1, len_scale=21.0) self.x = np.linspace(0, 80, 11) self.y = np.linspace(0, 30, 31) self.z = np.linspace(0, 91, 13) @@ -64,7 +64,9 @@ def test_3d(self): def test_periodicity(self): field = self.srf_2d((self.x, self.y), mesh_type="structured") - self.assertAlmostEqual(field[0, len(self.y)//2], field[-1, len(self.y)//2]) + self.assertAlmostEqual( + field[0, len(self.y) // 2], field[-1, len(self.y) // 2] + ) def test_assertions(self): # unstructured grids not supported