Skip to content

Commit

Permalink
Scale test values by 2 pi
Browse files Browse the repository at this point in the history
this is probably not a good test...
  • Loading branch information
jennyfothergill committed Apr 8, 2022
1 parent ece7383 commit 016f90d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gixstapose/tests/test_diffract.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_diffract_plot_camera(self, positions_and_box, camera100):
fig, ax = d.plot()
assert isinstance(ax, plt.Axes)
assert isinstance(fig, plt.Figure)
assert (-65, 65) == ax.get_xlim()
assert all(np.isclose(ax.get_xlim(), (-405, 405), atol=1))

def test_diffract_plot_rot(self, positions_and_box, rot100):
d = Diffractometer(length_scale=2.0)
Expand All @@ -36,7 +36,7 @@ def test_diffract_plot_rot(self, positions_and_box, rot100):
fig, ax = d.plot()
assert isinstance(ax, plt.Axes)
assert isinstance(fig, plt.Figure)
assert (-32.5, 32.5) == ax.get_xlim()
assert all(np.isclose(ax.get_xlim(), (-202, 202), atol=1))

def test_diffract_plot_raises(self, positions_and_box):
with pytest.raises(ValueError):
Expand Down

0 comments on commit 016f90d

Please sign in to comment.