Closed pkienzle closed 2 years ago
In realspace.py, the rotation matrixes and the definition of orientation coordinates pol2rec
are consistent with the coordinates for the polarisation vector p_hat
in the function magnetic_sld
.
I would need to guess the origin of the expressions for view and jitter matrices in kernel_iq.c
, such that I can not state if they are in line. Similarly, the dedicated magnetic models in the model market place need an extra look, while doing the refactoring mentioned in ticket #450.
Related: sasview generic scattering calculator https://github.com/SasView/sasview/pull/1971
Orientation angles are θ, φ, ψ most everywhere but magnetic orientation uses
up_angle
andup_phi
for historical reasons. Renameup_angle
toup_theta
and make sure that older models get converted.Verify that θ, φ use the same orientation system as the particle axis, both for applied field and for orientation of the magnetism within the particle.
Also, make sure that models saved without
up_phi
are loaded correctly in versions that support arbitrary applied field.