Skip to content

Commit

Permalink
CI #303 set numerical precision for this tardis test
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Dec 19, 2023
1 parent 82ce4f6 commit 100643f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hkl/tests/test_tardis.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def test_reachable(tardis, kcf_sample, constrain):
tardis.move(ppos)
print("tardis position is", tardis.position)
print("tardis position is", tardis.calc.physical_positions)
numpy.testing.assert_almost_equal(tardis.position, ppos)
numpy.testing.assert_almost_equal(tardis.calc.physical_positions, rpos)
numpy.testing.assert_almost_equal(tardis.position, ppos, decimal=4)
numpy.testing.assert_almost_equal(tardis.calc.physical_positions, rpos, decimal=4)


def test_inversion(tardis, kcf_sample, constrain):
Expand Down

0 comments on commit 100643f

Please sign in to comment.