Skip to content

Commit ccea574

Browse files
better name for the warning msg
1 parent 76d8975 commit ccea574

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
@@ -16,7 +16,7 @@
1616
"The supplied q-array and wavelength will result in an impossible two-theta. "
1717
"Please check these values and re-instantiate the DiffractionObject with correct values."
1818
)
19-
inf_output_msg = "WARNING: The largest output is infinite and cannot be plotted."
19+
inf_output_wmsg = "WARNING: The largest output is infinite and cannot be plotted."
2020

2121

2222
def _validate_inputs(q, wavelength):
@@ -134,7 +134,7 @@ def q_to_d(q):
134134
The array of :math:`d` values np.array([ds]).
135135
"""
136136
if 0 in q:
137-
warnings.warn(inf_output_msg)
137+
warnings.warn(inf_output_wmsg)
138138
return 2.0 * np.pi / copy(q)
139139

140140

@@ -159,7 +159,7 @@ def d_to_q(d):
159159
The units of q must be reciprocal of the units of wavelength.
160160
"""
161161
if 0 in d:
162-
warnings.warn(inf_output_msg)
162+
warnings.warn(inf_output_wmsg)
163163
return 2.0 * np.pi / copy(d)
164164

165165

0 commit comments

Comments
 (0)