``xrdfit`` is a Python package we have developed for a faster fitting of diffraction peaks in SXRD (and XRD) spectra, which can be used for datasets containing many thousands of patterns. It is intended as an easy to use tool which enables automated, repeatable identification of peak positions and profiles in spectra with multiple individual or overlapping lattice plane peaks. The features of ``xrdfit`` are shown schematically in \autoref{fig:figure1}. ``xrdfit`` uses the Python package ``lmfit`` [@Newville_2014] for the underlying fitting. Features are included for selecting different 'cakes' of data and automating fitting over many spectra, to enable tracking of peaks as they shift throughout the experiment. By analysing how different lattice plane peaks change during simulated processing, as can be seen in \autoref{fig:figure2}, the transformation and micromechanical behaviour of the material can be understood.
0 commit comments