-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating wavelength in PowderDiffraction #42
Comments
unfortunately the setting of wavelength is currently a bit complicated and not very well documented if you use a
I will think about how to make this more intuitive and flexible. Note that all these settings at the moment must be of type
|
inform the user if the wavelength of PowderDiffraction is attempted to be set wrongly
@sbanerjee23 please let me know what you think of the latest changes. it is now possible to set the wavelength/energy for
or
or
Note that now also in emiss_wavelength one can just specify a float. What is still not possible is to use dominant_wavelength which I consider a "read-only" option. The inconsistency of the units (meter vs. Angstrom) is a historic problem which I am aware of but currently would like to keep as it is. |
I'm trying to calculate a powder diffraction pattern, but am unable to update the wavelength in the
global
dictionary. I am able to update other keys, and add awavelength
key and pass it tofpsettings
, but this has no effect on the output pattern. This script is based off thexrayutilities_experiment_Powder_example_Iron
example and I'm currently running it inside a jupyter notebook. I tried some alternatives: running this as an executable in a directory alongside axrayutilities.conf
file, and also passing awl=#.##
argument directly toPowderDiffraction()
but am not having any luck. Any advice?Here is a partial output of the printed settings dictionary:
The text was updated successfully, but these errors were encountered: