File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
2222def _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
You can’t perform that action at this time.
0 commit comments