-
Notifications
You must be signed in to change notification settings - Fork 2
Get peaks from CIF #214
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
Get peaks from CIF #214
Conversation
| import scipp as sc | ||
|
|
||
|
|
||
| def dspacing_peak_positions_from_cif(cif, intensity_threshold=None) -> sc.Variable: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a docstring? In particular, it needs to explain the cif argument because it is not clear what types are allowed and what kinds of strings can be passed.
tests/diffraction/test_peaks.py
Outdated
|
|
||
| d = dspacing_peak_positions_from_cif( | ||
| 'codid::9011998', | ||
| sc.scalar(50, unit='1e10'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this strange unit instead of sc.scalar(1e10)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to test that the unit conversion is done.
Co-authored-by: Jan-Lukas Wynen <jan-lukas.wynen@ess.eu>
Fixes #201