Skip to content

Commit 206d39d

Browse files
authored
fix info message name and change warn to print
in q to do transforms.
1 parent b3110bf commit 206d39d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diffpy/utils/transforms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def q_to_d(q):
135135
The array of :math:`d` values np.array([ds]).
136136
"""
137137
if 0 in q:
138-
print(inf_output_wmsg)
138+
print(inf_output_imsg)
139139
return 2.0 * np.pi / copy(q)
140140

141141

@@ -169,7 +169,7 @@ def tth_to_d(tth, wavelength):
169169
d[i] = i
170170
return d
171171
if 0 in q:
172-
warnings.warn(inf_output_wmsg)
172+
print(inf_output_imsg)
173173
return 2.0 * np.pi / copy(q)
174174

175175

@@ -189,7 +189,7 @@ def d_to_q(d):
189189
The units of q must be reciprocal of the units of wavelength.
190190
"""
191191
if 0 in d:
192-
warnings.warn(inf_output_wmsg)
192+
print(inf_output_imsg)
193193
return 2.0 * np.pi / copy(d)
194194

195195

0 commit comments

Comments
 (0)