Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael McCrackan committed Oct 29, 2024
1 parent 9e4b86c commit b25095e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_fitting_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def noise_model(f, p):
so3g_sigmas = np.zeros((ndets, nparams), dtype=dtype, order=order)

so3g.fit_noise(f, pxx, so3g_params, so3g_sigmas, lowf, fwhite[0],
fwhite[1], tol, niter, so3g_sigmas)
fwhite[1], tol, niter, epsilon)

# Check if fitted parameters deviate from input by more than 1-sigma
for i in range(ndets):
residual = np.abs(p0 - so3g_fitout[i]) / so3g_covout[i]
residual = np.abs(p0 - so3g_params[i]) / so3g_sigmas[i]
np.testing.assert_array_less(residual, 1.0)


Expand Down

0 comments on commit b25095e

Please sign in to comment.