Skip to content

Commit

Permalink
add tolerance to q res test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Oct 10, 2023
1 parent 6c0202f commit 9dda1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reduction/test/test_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_full_reduction():
refl_all = np.take_along_axis(refl_all, idx, axis=None)
d_refl_all = np.take_along_axis(d_refl_all, idx, axis=None)

assert(resolution == 0.02785205863936946)
assert(np.fabs(resolution - 0.02785205863936946) < 1e-5)
ref_data = np.loadtxt('data/reference_rq.txt').T
assert(len(ref_data[1]) == len(refl_all))
assert(np.fabs(np.sum(ref_data[1]-refl_all)) < 1e-10)
Expand Down

0 comments on commit 9dda1d5

Please sign in to comment.