Closed kbarros closed 1 year ago
Note that LSWT now uses q_reshaped
internally, which can be our naming convention for RLU for the reshaped supercell. This is what @Hao-Phys requested.
fei2_tutorial.jl
is now giving the correct results.fei2_classical.jl
. The fix may require an update to connected_path_bins
to accept RLU.Other updates I think we should include with this PR (help requested from @Lazersmoke and @ddahlbom):
Adopt a consistent naming convention throughout Sunny to indicate the units of a wavevector. Previously @ddahlbom was distinguishing q
and k
, but I think that's too subtle. One possibility (started in this PR) is q
for a wavevector in original RLU, q_reshaped
for a wavevector in RLU for the reshaped crystal, and q_absolute
for a wavevector in absolute units. We need all three because: (a) LSWT and SampledCorrelations want to work with q_reshaped
internally, (b) Sometimes we need q_absolute
, e.g., for calculating the form factor, and (c) The user interface is entirely in q
, i.e. the original RLU.
I have renamed connected_path
to reciprocal_space_path
, which reflects the more specific nature of this function. We will need some analogous renaming of connected_path_bins
.
This is a work in progress. Tests are passing, but I think @Lazersmoke needs to update binning code.
This won't be ready until the generated docs for
fei2_classical.jl
andbinning_tutorial.jl
look good.Good news: The examples are now serving as nice tests!