We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65d9d61 commit edd44eeCopy full SHA for edd44ee
tests/test_transforms.py
@@ -15,15 +15,13 @@
15
(None, np.empty((0)), np.empty((0))),
16
# 2. 4π wavelength, expect empty arrays
17
(4 * np.pi, np.empty((0)), np.empty(0)),
18
-
19
# C2. Non-empty q values
20
# 2. No wavelength, expect value tth values
21
(
22
None,
23
np.array([0, 0.2, 0.4, 0.6, 0.8, 1]),
24
np.array([0, 1, 2, 3, 4, 5]),
25
),
26
27
# C3: Both valid q and wavelength provided
28
# 1. Expected tth values are 2*arcsin(q) in degrees
29
(4 * np.pi, np.array([0, 1 / np.sqrt(2), 1.0]), np.array([0, 90.0, 180.0])),
@@ -41,7 +39,7 @@ def test_q_to_tth(wavelength, q, expected_tth, wavelength_warning_msg):
41
39
42
40
@pytest.mark.parametrize(
43
"wavelength, q, expected_error_type",
44
- [
+ [
45
# Test error messages in q to tth conversion with invalid Two theta values.
46
# C1: Invalid q values that result in tth > 180 degrees
47
0 commit comments