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 ccea574 commit 79399a2Copy full SHA for 79399a2
src/diffpy/utils/transforms.py
@@ -113,6 +113,7 @@ def tth_to_q(tth, wavelength):
113
pre_factor = (4.0 * np.pi) / wavelength
114
q = pre_factor * np.sin(np.deg2rad(tth / 2))
115
else: # return intensities vs. an x-array that is just the index
116
+ warnings.warn(wavelength_warning_emsg, UserWarning)
117
for i, _ in enumerate(q):
118
q[i] = i
119
return q
0 commit comments