@@ -173,7 +173,7 @@ def test_Patch2D(par, dtype):
173173
174174 assert y .dtype == dtype
175175 assert xadj .dtype == dtype
176- assert_array_almost_equal (x .ravel (), xinv , decimal = 4 if dtype == np .float32 else 8 )
176+ assert_array_almost_equal (x .ravel (), xinv , decimal = 3 if dtype == np .float32 else 8 )
177177
178178
179179@pytest .mark .parametrize ("par" , [(par1 ), (par4 )])
@@ -217,7 +217,7 @@ def test_Patch2D_scalings(par, dtype):
217217
218218 assert y .dtype == dtype
219219 assert xadj .dtype == dtype
220- assert_array_almost_equal (x .ravel (), xinv , decimal = 4 if dtype == np .float32 else 8 )
220+ assert_array_almost_equal (x .ravel (), xinv , decimal = 3 if dtype == np .float32 else 8 )
221221
222222
223223@pytest .mark .parametrize ("par" , [(par1 ), (par4 )])
@@ -261,7 +261,7 @@ def test_Patch2D_singlepatch1(par, dtype):
261261
262262 assert y .dtype == dtype
263263 assert xadj .dtype == dtype
264- assert_array_almost_equal (x .ravel (), xinv , decimal = 4 if dtype == np .float32 else 8 )
264+ assert_array_almost_equal (x .ravel (), xinv , decimal = 3 if dtype == np .float32 else 8 )
265265
266266
267267@pytest .mark .parametrize ("par" , [(par1 ), (par2 ), (par3 ), (par4 ), (par5 ), (par6 )])
@@ -304,7 +304,7 @@ def test_Patch2D_singlepatch2(par, dtype):
304304
305305 assert y .dtype == dtype
306306 assert xadj .dtype == dtype
307- assert_array_almost_equal (x .ravel (), xinv , decimal = 4 if dtype == np .float32 else 8 )
307+ assert_array_almost_equal (x .ravel (), xinv , decimal = 3 if dtype == np .float32 else 8 )
308308
309309
310310@pytest .mark .parametrize ("par" , [(par1 ), (par2 ), (par3 ), (par4 ), (par5 ), (par6 )])
@@ -359,7 +359,7 @@ def test_Patch3D(par, dtype):
359359
360360 assert y .dtype == dtype
361361 assert xadj .dtype == dtype
362- assert_array_almost_equal (x .ravel (), xinv , decimal = 4 if dtype == np .float32 else 8 )
362+ assert_array_almost_equal (x .ravel (), xinv , decimal = 3 if dtype == np .float32 else 8 )
363363
364364
365365@pytest .mark .parametrize ("par" , [(par1 ), (par2 ), (par3 ), (par4 ), (par5 ), (par6 )])
@@ -411,7 +411,7 @@ def test_Patch3D_singlepatch1(par, dtype):
411411
412412 assert y .dtype == dtype
413413 assert xadj .dtype == dtype
414- assert_array_almost_equal (x .ravel (), xinv , decimal = 4 if dtype == np .float32 else 8 )
414+ assert_array_almost_equal (x .ravel (), xinv , decimal = 3 if dtype == np .float32 else 8 )
415415
416416
417417@pytest .mark .parametrize ("par" , [(par1 ), (par2 ), (par3 ), (par4 ), (par5 ), (par6 )])
@@ -463,7 +463,7 @@ def test_Patch3D_singlepatch2(par, dtype):
463463
464464 assert y .dtype == dtype
465465 assert xadj .dtype == dtype
466- assert_array_almost_equal (x .ravel (), xinv , decimal = 4 if dtype == np .float32 else 8 )
466+ assert_array_almost_equal (x .ravel (), xinv , decimal = 3 if dtype == np .float32 else 8 )
467467
468468
469469@pytest .mark .parametrize ("par" , [(par1 ), (par2 ), (par3 ), (par4 ), (par5 ), (par6 )])
@@ -518,7 +518,7 @@ def test_Patch3D_singlepatch12(par, dtype):
518518
519519 assert y .dtype == dtype
520520 assert xadj .dtype == dtype
521- assert_array_almost_equal (x .ravel (), xinv , decimal = 4 if dtype == np .float32 else 8 )
521+ assert_array_almost_equal (x .ravel (), xinv , decimal = 3 if dtype == np .float32 else 8 )
522522
523523
524524@pytest .mark .parametrize ("par" , [(par1 ), (par2 ), (par3 ), (par4 ), (par5 ), (par6 )])
@@ -569,4 +569,4 @@ def test_Patch3D_singlepatch3(par, dtype):
569569
570570 assert y .dtype == dtype
571571 assert xadj .dtype == dtype
572- assert_array_almost_equal (x .ravel (), xinv , decimal = 4 if dtype == np .float32 else 8 )
572+ assert_array_almost_equal (x .ravel (), xinv , decimal = 3 if dtype == np .float32 else 8 )
0 commit comments