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 997cdd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/haven/tests/test_energy_xafs_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ 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"
]
np.testing.assert_equal(real_exposures, expected_exposures)
np.testing.assert_almost_equal(real_exposures, expected_exposures)


def test_named_E0(mono_motor, exposure_motor, I0):
Expand Down

0 comments on commit 997cdd4

Please sign in to comment.