Skip to content

Commit cce5716

Browse files
committed
Remove INFO and improve how to set wavelenght warning msg
1 parent 8c891db commit cce5716

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/diffpy/utils/transforms.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
import numpy as np
55

66
wavelength_warning_emsg = (
7-
"INFO: no wavelength has been specified. You can continue "
8-
"to use the DiffractionObject but some of its powerful features "
9-
"will not be available. To specify a wavelength, set "
10-
"diffraction_object.wavelength = [number], "
11-
"where diffraction_object is the variable name of you Diffraction Object, "
12-
"and number is the wavelength in angstroms."
7+
"No wavelength has been specified. You can continue to use the DiffractionObject, but "
8+
"some of its powerful features will not be available. "
9+
"To specify a wavelength, if you have do = DiffractionObject(xarray, yarray, 'tth'), "
10+
"you may set do.wavelength = 1.54 with the unit in angstroms."
1311
)
1412
invalid_tth_emsg = "Two theta exceeds 180 degrees. Please check the input values for errors."
1513
invalid_q_or_d_or_wavelength_emsg = (

0 commit comments

Comments
 (0)