Closed rmatsum836 closed 3 years ago
I believe I have the other normalization working. Still need to:
scattering.py
I contacted the lead developer of TRAVIS and identified a bug in how the structure factors are written out to CSV format. By manually fixing the bug, the Faber-Ziman and Ashcroft-Langreth structure factors in this package show much closer agreement with TRAVIS.
This bug fix should be included in the next version of TRAVIS.
In the input check on line 60, the error message says only 'fz' is supported, but the if statement accepts 'fz' and 'al'. On line 128 of the original, partial_sq has a +1 that is not present in the new version at line 125. I don't know if this is intended or not. Otherwise, it looks good to me.
Yes, I removed the +1
so that the output of these functions is identical to that of another analysis package.
Tests are passing locally, will merge once CI has passed.
TRAVIS includes two normalization factors for the structure factor. This PR adds the normalization factor in equation 4 of DOI: 10.1002/cphc.201500473.