- Accepted Paper
diffpy.morph: Python tools for model-independent comparisons between sets of one-dimensional functions
Phys. Rev. Materials - Accepted 22 July, 2026
DOI: https://doi.org/10.1103/t39r-v3lx
Phys. Rev. Materials - Accepted 22 July, 2026
DOI: https://doi.org/10.1103/t39r-v3lx
diffpy.morph addresses a need to gain scientific insights from 1D scientific spectra in model independent ways. A powerful approach for this is to take differences between pairs of spectra and look for meaningful changes that might indicate underlying chemical, structural, or other modifications. The challenge is that the difference curve may contain uninteresting differences such as experimental inconsistencies and benign physical changes such as the effects of thermal expansion. diffpy.morph allows researchers to apply simple transformations, or ``morphs", to one of the datasets to remove the unwanted differences revealing, when they are present, non-trivial differences. diffpy.morph is an open-source Python package available on the Python Package Index and conda-forge. Here, we describe its functionality and apply it to solve a range of experimental challenges on diffraction and PDF data from x-rays and neutrons, though we note that it may be applied to any 1D function in principle.
If the author has provided any supplemental materials with this article they will be available upon publication of the version of record.