Closed pkienzle closed 2 years ago
The only things that really require change is import of Tuple, and the removing the parameterisation on ndarray
@dehoni I modified the magnetic calculations a bit to use the numpy @
operator instead of dot
. I also simplified the code for orth
. I compared it to a magnetic sphere model and it still seems to produce the same results as the analytic calculation so I probably didn't break anything, but you might want to check the code.
@dehoni can you check please if it is ok now?
@dehoni will take a quick look and we hopefully can merge it
Sorry, my bad, I did not find the box to approve the changes...
Some code cleanup on explore/realspace.py with minor reformatting and removing deprecated functions.
This code is not part of the sasmodels library or the sasview application. Its purpose is to validate analytical models with Monte Carlo sampling on real-space models.
To see options for running the code type:
The Pr curve should match the analytic curve but the normalization is wrong so it is shifted. The Iq_avg curve is only valid for radially symmetric samples, so in general it will not match.