Skip to content

Commit 6295aa5

Browse files
authored
small tweak to infinite d message
1 parent 664df76 commit 6295aa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffpy/utils/transforms.py

Lines changed: 2 additions & 2 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_wmsg = "WARNING: The largest output is infinite and cannot be plotted."
19+
inf_output_wmsg = "INFO: The largest d-value in the array is infinite. This is allowed, but it will not be plotted."
2020

2121

2222
def _validate_inputs(q, wavelength):
@@ -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-
warnings.warn(inf_output_wmsg)
138+
print(inf_output_wmsg)
139139
return 2.0 * np.pi / copy(q)
140140

141141

0 commit comments

Comments
 (0)