Closed kbarros closed 1 month ago
An example script to exercise the sublattice part of this:
(N.B. it fails the @assert
stochastically, sorry about this, just need to rerun until it works)
In addition to the new tutorial 8 and Sam's example above, here is a script that shows agreement between LSWT and SampledCorrelations
. Passes on both this branch, and (for accidental reasons) on the release Sunny 0.5.11.
This PR fixes the direction of momentum transfer for structure factor intensities calculated using
SampledCorrelations
. The issue is documented in #270.The PR additionally unifies notation, adds test, and adds a new tutorial to illustrate the Sunny sign convention for momentum transfer.
(Early versions of this PR also attempted to swap the sign of $q$ in LSWT calculations, but that was erroneous and has been reverted.)