[GSAS-II] Change in scripted TOF pattern simulation
Toby, Brian H.
toby at anl.gov
Sat Jun 6 20:52:27 CDT 2020
I would like to alert people using GSAS-II scripting to a change in the API that may require changes to scripts. This will only affect people who use scripting to simulate TOF patterns.
When originally written, the G2Project.add_simulated_powder_histogram<https://gsas-ii.readthedocs.io/en/latest/GSASIIscriptable.html#GSASIIscriptable.G2Project.add_simulated_powder_histogram>() was intended to take as input TOF times in milliseconds. Due to a bug it was actually using times in microseconds. It was also computing TOF patterns on linear grid rather than on a log grid and was using the time-step incorrectly. I have corrected all this and updated the function documentation (found here: https://gsas-ii.readthedocs.io/en/latest/GSASIIscriptable.html#GSASIIscriptable.G2Project.add_simulated_powder_histogram).
These changes will require a change in the times supplied to G2Project.add_simulated_powder_histogram<https://gsas-ii.readthedocs.io/en/latest/GSASIIscriptable.html#GSASIIscriptable.G2Project.add_simulated_powder_histogram> in any scripts used to simulate TOF patterns for those scripts to run after an update to version 4469 or later. I am sorry for this.
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.aps.anl.gov/pipermail/gsas-ii/attachments/20200607/271f93b3/attachment.html>
More information about the GSAS-II
mailing list