Skip to content

Commit a2a43a0

Browse files
edit test comments
1 parent 0a30818 commit a2a43a0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_diffraction_objects.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ def test_init_invalid_xtype():
212212
},
213213
{"xtype": "tth", "yarray": np.array([4.1, 5.1, 6.1, 7.1, 8.1, 9.1])},
214214
),
215-
( # C2: Same x-arrays, x-value matches at tth=60, expect y-array to divide by 10
215+
( # C2: Same x-arrays
216+
# x-value has exact matches at tth=60 (y=60) and tth=60 (y=6),
217+
# for original and target diffraction objects,
218+
# expect y-array to multiply by 6/60=1/10
216219
{
217220
"xarray": np.array([10, 15, 25, 30, 60, 140]),
218221
"yarray": np.array([10, 20, 25, 30, 60, 100]),
@@ -236,7 +239,7 @@ def test_init_invalid_xtype():
236239
( # C3: Different x-arrays with same length,
237240
# x-value has closest match at q=0.12 (y=10) and q=0.14 (y=1)
238241
# for original and target diffraction objects,
239-
# expect y-array to divide by 10
242+
# expect y-array to multiply by 1/10
240243
{
241244
"xarray": np.array([0.12, 0.24, 0.31, 0.4]),
242245
"yarray": np.array([10, 20, 40, 60]),
@@ -260,7 +263,7 @@ def test_init_invalid_xtype():
260263
( # C4: Different x-array lengths
261264
# x-value has closest matches at tth=61 (y=50) and tth=62 (y=5),
262265
# for original and target diffraction objects,
263-
# expect y-array to divide by 10
266+
# expect y-array to multiply by 5/50=1/10
264267
{
265268
"xarray": np.array([10, 25, 30.1, 40.2, 61, 120, 140]),
266269
"yarray": np.array([10, 20, 30, 40, 50, 60, 100]),

0 commit comments

Comments
 (0)