Skip to content

Commit

Permalink
Be more lenient in random gradient test
Browse files Browse the repository at this point in the history
  • Loading branch information
thangleiter committed Mar 2, 2021
1 parent a4d39eb commit 2718040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_gradient_calculation_random_pulse(self):
spectral_noise_density=gradient_testutil.one_over_f_noise,
c_id=[f'c{i}' for i in range(len(u_ctrl))], n_coeffs_deriv=None
)
self.assertArrayAlmostEqual(ana_grad, fin_diff_grad, rtol=1e-6, atol=1e-10)
self.assertArrayAlmostEqual(ana_grad, fin_diff_grad, rtol=1e-6, atol=1e-8)

def test_raises(self):
pulse = testutil.rand_pulse_sequence(2, 3)
Expand Down

0 comments on commit 2718040

Please sign in to comment.