  The open-source python package diffpy.mpdf, part of the DiffPy suite for
diffraction and pair distribution function analysis, provides a user-friendly
approach for performing magnetic pair distribution function (mPDF) analysis.
The package builds on existing libraries in the DiffPy suite to allow users to
create models of magnetic structures and calculate corresponding
one-dimensional and three-dimensional mPDF patterns. diffpy.mpdf can be used to
perform fits to mPDF data either in isolation or in combination with atomic PDF
data for joint refinements of the atomic and magnetic structure. Examples are
given using MnO and MnTe as representative antiferromagnetic compounds and MnSb
as a representative ferromagnet.
