New issue
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
R0 prefactors inconsistent with those from ResLib #57
Comments
I think there are two separate issues here. First, in ResLib there is a factor of The second issue was in the calculation for sample mosaics, where
When I translated this code it looks like I changed it such that where they assign the matrix indices I am working on pushing a fix for this issue today. |
Resolves #57 Incorrect propagation of FWHM to gaussian RMS width conversion factor fixed. Incorrect matrix indices during calculation with sample mosaics. Went back to Matlab ResLib code to generate new tests for a more simple case. More tests will need to be generated.
Resolves #57 Incorrect propagation of FWHM to gaussian RMS width conversion factor fixed. Incorrect matrix indices during calculation with sample mosaics. Went back to Matlab ResLib code to generate new tests for a more simple case. More tests will need to be generated.
Resolves #57 Incorrect propagation of FWHM to gaussian RMS width conversion factor fixed. Incorrect matrix indices during calculation with sample mosaics. Went back to Matlab ResLib code to generate new tests for a more simple case. More tests will need to be generated.
Resolves #57 Incorrect propagation of FWHM to gaussian RMS width conversion factor fixed. Incorrect matrix indices during calculation with sample mosaics. Went back to Matlab ResLib code to generate new tests for a more simple case. More tests will need to be generated.
Resolves #57 Incorrect propagation of FWHM to gaussian RMS width conversion factor fixed. Incorrect matrix indices during calculation with sample mosaics. Went back to Matlab ResLib code to generate new tests for a more simple case. More tests will need to be generated.
If we run the following scripts, we get different values for R0.
Here's the ResLib code which I ran in GNU Octave for a single value at (2,-0.18,0), 4 meV:
Output:
Here's the neutronpy code:
Output:
Also, their energy dependences seem to be different. Here are some plots I made of R0 vs energy, still at Q=(2,-0.18,0). The top plots are from neutronpy, and the bottom are from ResLib.
The text was updated successfully, but these errors were encountered: