Skip to content

Commit

Permalink
Fixed a numpy precision issue in a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko committed Jan 5, 2025
1 parent 5412505 commit 62ce817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haven/tests/test_energy_xafs_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def test_exafs_k_range(mono_motor, exposure_motor, I0):
real_energies = [
i.args[0] for i in scan_list if i[0] == "set" and i.obj.name == "mono_energy"
]
np.testing.assert_equal(real_energies, expected_energies)
np.testing.assert_almost_equal(real_energies, expected_energies)
# Check that the exposure is set correctly
real_exposures = [
i.args[0] for i in scan_list if i[0] == "set" and i.obj.name == "exposure"
Expand Down

0 comments on commit 62ce817

Please sign in to comment.