Skip to content

Commit b5d31b1

Browse files
committed
Relax accuracy
1 parent 2ee3d86 commit b5d31b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_gradient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_gradient_calculation_random_pulse(self):
134134
spectral_noise_density=gradient_testutil.one_over_f_noise,
135135
c_id=[f'c{i}' for i in range(len(u_ctrl))], n_coeffs_deriv=None
136136
)
137-
self.assertArrayAlmostEqual(ana_grad, fin_diff_grad, rtol=1e-6, atol=1e-8)
137+
self.assertArrayAlmostEqual(ana_grad, fin_diff_grad, rtol=1e-5, atol=1e-7)
138138

139139
def test_caching(self):
140140
"""Make sure calculation works with or without cached intermediates."""

0 commit comments

Comments
 (0)