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 664df76 commit 6295aa5Copy full SHA for 6295aa5
src/diffpy/utils/transforms.py
@@ -16,7 +16,7 @@
16
"The supplied q-array and wavelength will result in an impossible two-theta. "
17
"Please check these values and re-instantiate the DiffractionObject with correct values."
18
)
19
-inf_output_wmsg = "WARNING: The largest output is infinite and cannot be plotted."
+inf_output_wmsg = "INFO: The largest d-value in the array is infinite. This is allowed, but it will not be plotted."
20
21
22
def _validate_inputs(q, wavelength):
@@ -135,7 +135,7 @@ def q_to_d(q):
135
The array of :math:`d` values np.array([ds]).
136
"""
137
if 0 in q:
138
- warnings.warn(inf_output_wmsg)
+ print(inf_output_wmsg)
139
return 2.0 * np.pi / copy(q)
140
141
0 commit comments