Skip to content

Commit

Permalink
Relax accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
thangleiter committed Sep 19, 2024
1 parent 2ee3d86 commit b5d31b1
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 @@ -134,7 +134,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-8)
self.assertArrayAlmostEqual(ana_grad, fin_diff_grad, rtol=1e-5, atol=1e-7)

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

0 comments on commit b5d31b1

Please sign in to comment.