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

How does libhkl get wavelength for add_reflection()? #159

Closed
prjemian opened this issue May 17, 2021 · 1 comment
Closed

How does libhkl get wavelength for add_reflection()? #159

prjemian opened this issue May 17, 2021 · 1 comment
Assignees
Labels
Milestone

Comments

@prjemian
Copy link
Contributor

# TODO: How does libhkl get the wavelength on a reflection?

@prjemian prjemian added this to the v1.0.0 milestone May 17, 2021
@prjemian prjemian self-assigned this May 17, 2021
@prjemian
Copy link
Contributor Author

libhkl gets the wavelength on a reflection from hkl.calc.wavelength in its setter:

# TODO: How does libhkl get the wavelength on a reflection?

It is read in two places:

hklpy/hkl/calc.py

Lines 170 to 173 in 19b397a

@property
def wavelength(self):
"""The wavelength associated with the geometry, in angstrom"""
return self._geometry.wavelength_get(self._units)
and
wavelength=geom.wavelength_get(1),

prjemian added a commit that referenced this issue May 17, 2021
prjemian added a commit that referenced this issue Oct 4, 2023
prjemian added a commit that referenced this issue Oct 4, 2023
prjemian added a commit that referenced this issue Oct 4, 2023
prjemian added a commit that referenced this issue Oct 4, 2023
prjemian added a commit that referenced this issue Oct 4, 2023
prjemian added a commit that referenced this issue Oct 4, 2023
prjemian added a commit that referenced this issue Oct 4, 2023
prjemian added a commit that referenced this issue Oct 4, 2023
prjemian added a commit that referenced this issue Oct 4, 2023
prjemian added a commit that referenced this issue Oct 4, 2023
prjemian added a commit that referenced this issue Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant