Skip to content

Commit

Permalink
Merge pull request #145 from mrakitin/tst-fix-atol
Browse files Browse the repository at this point in the history
TST: fix comparison of mean value of images with expected value
  • Loading branch information
mrakitin authored Sep 30, 2023
2 parents 1b38d93 + 6b0d0e5 commit 610c84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sirepo_bluesky/tests/test_bl_elements_as_ophyd_objs.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def test_shadow_with_run_engine(RE, db, shadow_tes_simulation, num_steps=5):

# Check that an average values of the first and last images are right:
assert np.allclose(w9_image[0].mean(), 0.0)
assert np.allclose(w9_image[-1].mean(), 0.255665516042795)
assert np.allclose(w9_image[-1].mean(), 0.255665516042795, atol=1e-3)

# Check that the values from the table and averages from the image data are
# the same:
Expand Down

0 comments on commit 610c84c

Please sign in to comment.