Skip to content

Commit b87614b

Browse files
committed
fix: lower tolerance for fp32 dottest in poststack (for macosx ci)
1 parent b11dd7a commit b87614b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pytests/test_poststack.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ def test_PoststackLinearModelling1d(par, dtype):
112112
PPop_dense,
113113
nt0,
114114
nt0,
115-
rtol=1e-4 if dtype == np.float32 else 1e-6,
115+
rtol=1e-3 if dtype == np.float32 else 1e-6,
116116
backend=backend,
117117
)
118118

119119
# Linear operator
120120
PPop = PoststackLinearModelling(wav.astype(dtype), nt0=nt0, explicit=False)
121121
assert dottest(
122-
PPop, nt0, nt0, rtol=1e-4 if dtype == np.float32 else 1e-6, backend=backend
122+
PPop, nt0, nt0, rtol=1e-3 if dtype == np.float32 else 1e-6, backend=backend
123123
)
124124

125125
# Compare data (dense vs lop) and check dtype
@@ -243,7 +243,7 @@ def test_PoststackLinearModelling2d(par, dtype):
243243
PPop_dense,
244244
nz * nx,
245245
nz * nx,
246-
rtol=1e-4 if dtype == np.float32 else 1e-6,
246+
rtol=1e-3 if dtype == np.float32 else 1e-6,
247247
backend=backend,
248248
)
249249

@@ -255,7 +255,7 @@ def test_PoststackLinearModelling2d(par, dtype):
255255
PPop,
256256
nz * nx,
257257
nz * nx,
258-
rtol=1e-4 if dtype == np.float32 else 1e-6,
258+
rtol=1e-3 if dtype == np.float32 else 1e-6,
259259
backend=backend,
260260
)
261261

0 commit comments

Comments
 (0)