Skip to content
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

consider units for wavelength, energy, & lattice parameters #30

Closed
prjemian opened this issue Sep 26, 2020 · 4 comments
Closed

consider units for wavelength, energy, & lattice parameters #30

prjemian opened this issue Sep 26, 2020 · 4 comments
Milestone

Comments

@prjemian
Copy link
Contributor

prjemian commented Sep 26, 2020

As @ambarb wrote:

To answer @mrakitin question, maybe these are unit-UNaware values out of convenience. I don't know the history. But soft x-ray beamline uses eV so hard coding this here as keV is probably not the approach accepted in the development processs- but I was not involved so I cannot say.

@prjemian prjemian changed the title To answer @mrakitin question, maybe these are unit-UNaware values out of convenience. I don't know the history. But soft x-ray beamline uses **eV** so hard coding this here as **keV** is probably not the approach accepted in the development processs- but I was not involved so I cannot say. consider units for wavelength, energy, & lattice parameters Sep 26, 2020
@prjemian prjemian added this to the AFTER 0.3.15 milestone Sep 26, 2020
@prjemian
Copy link
Contributor Author

Perhaps a suggestion such as this should be part of the documentation?

@ambarb
Copy link

ambarb commented Sep 28, 2020

If you mean the current units required, then I agree.

If you mean the history behind why these parameters appear unitless or that we may consider units for wavelength, energy, and lattice parameters, then maybe we should just wait and see how things shake out.

If you want to reference this issue in the documentation, fine by me.

@prjemian
Copy link
Contributor Author

Energy now has units in the Diffractometer class. Wavelength is not represented there, only in the calc module. The lattice parameters and the wavelength must have the same units (in the calc class) for compatibility with the underlying libhkl support.

It's not clear what action to take for this issue. I'll close this issue on 2021-04-26 if there is no further comment.

@prjemian
Copy link
Contributor Author

After this issue is closed, related comments could be added in a new issue (please reference this issue at that time).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants