|
10 | 10 | "wavelength, q, expected_tth", |
11 | 11 | [ |
12 | 12 | # Test conversion of q to tth with valid values |
13 | | - # C1: Empty q values |
14 | | - # 1. No wavelength, expect empty arrays |
15 | | - (None, np.empty((0)), np.empty((0))), |
16 | | - # 2. 4π wavelength, expect empty arrays |
| 13 | + # Case 1: Empty q values are provided (1) with and (2) without wavelength |
| 14 | + # 1. Expect empty arrays |
17 | 15 | (4 * np.pi, np.empty((0)), np.empty(0)), |
18 | | - # C2: Non-empty q values |
19 | | - # 2. No wavelength, expect value tth values |
| 16 | + # 2. Expect empty arrays with wavelength warning message |
| 17 | + (None, np.empty((0)), np.empty((0))), |
| 18 | + # Case 2: Non-empty q values are provided without wavelength |
| 19 | + # 1. Expect valid tth values in degrees. |
20 | 20 | ( |
21 | 21 | None, |
22 | 22 | np.array([0, 0.2, 0.4, 0.6, 0.8, 1]), |
23 | 23 | np.array([0, 1, 2, 3, 4, 5]), |
24 | 24 | ), |
25 | | - # C3: Both valid q and wavelength provided |
26 | | - # 1. Expected tth values are 2*arcsin(q) in degrees |
| 25 | + # Case 3: Both valid q and wavelength are provided. |
| 26 | + # 1. Expect tth values of 2*arcsin(q) in degrees |
27 | 27 | (4 * np.pi, np.array([0, 1 / np.sqrt(2), 1.0]), np.array([0, 90.0, 180.0])), |
28 | 28 | ], |
29 | 29 | ) |
|
0 commit comments