Skip to content

Commit 2718040

Browse files
committed
Be more lenient in random gradient test
1 parent a4d39eb commit 2718040

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
@@ -70,7 +70,7 @@ def test_gradient_calculation_random_pulse(self):
7070
spectral_noise_density=gradient_testutil.one_over_f_noise,
7171
c_id=[f'c{i}' for i in range(len(u_ctrl))], n_coeffs_deriv=None
7272
)
73-
self.assertArrayAlmostEqual(ana_grad, fin_diff_grad, rtol=1e-6, atol=1e-10)
73+
self.assertArrayAlmostEqual(ana_grad, fin_diff_grad, rtol=1e-6, atol=1e-8)
7474

7575
def test_raises(self):
7676
pulse = testutil.rand_pulse_sequence(2, 3)

0 commit comments

Comments
 (0)