-
Notifications
You must be signed in to change notification settings - Fork 97
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
Change the way d-spacing is calculated... #255
Comments
The motivation for the metric tensor is that you don't need to pick a See On 03/02/2016 10:00, Jerome Kieffer wrote:
|
... and now I got as far as looking at the code. You are already using On 03/02/2016 10:00, Jerome Kieffer wrote:
|
On Wed, 03 Feb 2016 08:55:13 -0800
Thanks for the review, Jon. We could gain some speed in doing all matrix-vector products in one This would probably make this faster but is 5 seconds to generate a I suggest to leave the issue open, as exercise for a trainee to Cheers, Jerome. |
Suggested by Carsten Detlefs:
You have already implemented the calculation of the d-spacings etc using
a "magic formula". The more conventional way would be to calculate the
"B matrix" from the lattice parameters, as defined e.g. by Busing and
Levy,
Acta Cryst vol 22, pp 457 (1967).
http://scripts.iucr.org/cgi-bin/paper?a05492
The Q-vector is then B*(H,K,L), and d_spacing = 2 pi/ |Q|
(but in general Q is much more useful than d).
This might be a bit faster (if that matters) as the B matrix is
calculated
only once, and after that there are no more sin/cos functions needed,
only
squares and one square root per (HKL).
The text was updated successfully, but these errors were encountered: