Skip to content

Commit 79399a2

Browse files
add warning message about wavelength in tth_to_q
1 parent ccea574 commit 79399a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffpy/utils/transforms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def tth_to_q(tth, wavelength):
113113
pre_factor = (4.0 * np.pi) / wavelength
114114
q = pre_factor * np.sin(np.deg2rad(tth / 2))
115115
else: # return intensities vs. an x-array that is just the index
116+
warnings.warn(wavelength_warning_emsg, UserWarning)
116117
for i, _ in enumerate(q):
117118
q[i] = i
118119
return q

0 commit comments

Comments
 (0)