Closed ddahlbom closed 2 years ago
Also, I made some minor revisions to the tests, in particular I added an explicit RNG with seed to tests where this matters.
I briefly looked into speeding up the tests. This will take more investigation. Consider the Langevin tests: If I pull out the individual tests and run them as regular scripts, each of the three tests takes significantly less than a second. However, when I call Pkg.test("Sunny", test_args=["test_langevin"])
, the tests takes 30 seconds. If I run the entire test suite, the Langevin tests take about 7 seconds, presumably because some relevant compilation has already occurred. Perhaps this comes down to the use of StaticArrays for SU(N) when N<6, but I suspect something else may be going on.
This PR contains some functionality that will be useful to have for the ORNL workshop. In particular:
ff_elem=nothing
andlande=false
have been added todynamic_structure_factor
. If a valid element is given toff_elem
, the form factor will be applied to the result. Additionally, there is a public functionapply_form_factor
which can be used on an already existing structure factor.Interpolations.jl
as a dependency, which is quite lightweight.Additionally,
reduce_basis
anddipole_factor
are set tofalse
. Missing brackets inbrav_lattice
function.)