Skip to content

Commit 57465e2

Browse files
edit tests
1 parent 11a15ee commit 57465e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_diffraction_objects.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,9 @@ def test_diffraction_objects_equality(inputs1, inputs2, expected):
205205
def test_on_xtype():
206206
test = DiffractionObject(wavelength=2 * np.pi, xarray=np.array([30, 60]), yarray=np.array([1, 2]), xtype="tth")
207207
assert np.allclose(test.on_xtype("tth"), [np.array([30, 60]), np.array([1, 2])])
208-
assert np.allclose(test.on_xtype("q"), [np.array([0.51763809, 1]), np.array([1, 2])])
209-
assert np.allclose(test.on_xtype("d"), [np.array([12.13818192, 6.28318531]), np.array([1, 2])])
208+
assert np.allclose(test.on_xtype("2theta"), [np.array([30, 60]), np.array([1, 2])])
209+
assert np.allclose(test.on_xtype("q"), [np.array([0.51764, 1]), np.array([1, 2])])
210+
assert np.allclose(test.on_xtype("d"), [np.array([12.13818, 6.28319]), np.array([1, 2])])
210211

211212

212213
def test_on_xtype_bad():

0 commit comments

Comments
 (0)