We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I used this script to compare the Fourier transform algorithm PDFFourierTransform of Mantid and pystog.
from mantid.simpleapi import CreateWorkspace, PDFFourierTransform import numpy as np from pystog import Transformer transformer = Transformer() xx = np.arange(0, 10, 0.1) yy = np.exp(-(2.0 * xx)**2) ws = CreateWorkspace(DataX=xx, DataY=yy, DataE=yy, UnitX='MomentumTransfer') Rt = PDFFourierTransform(ws, InputSofQType='Q[S(Q)-1]', PDFType='G(r)') y = Rt.extractY()[0] x = Rt.extractX()[0] e = Rt.extractE()[0] r, gr, dgr = transformer.F_to_G(xx, yy, x, yy)
After c80d57b this shows that you get the same G(r) (comparing y and gr) and delta-G(r) (comparing e and dgr).
y
gr
e
dgr
But if you change the input q to not start at 0 (xx=np.arange(0.1,10,0.1)) then the results differ.
q
0
xx=np.arange(0.1,10,0.1)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I used this script to compare the Fourier transform algorithm PDFFourierTransform of Mantid and pystog.
After c80d57b this shows that you get the same G(r) (comparing
y
andgr
) and delta-G(r) (comparinge
anddgr
).But if you change the input
q
to not start at0
(xx=np.arange(0.1,10,0.1)
) then the results differ.The text was updated successfully, but these errors were encountered: