MILK: a Python scripting interface to MAUD for automation of Rietveld analysis

J Appl Crystallogr. 2023 Jul 20;56(Pt 4):1277-1286. doi: 10.1107/S1600576723005472. eCollection 2023 Aug 1.

Abstract

Modern diffraction experiments (e.g. in situ parametric studies) present scientists with many diffraction patterns to analyze. Interactive analyses via graphical user interfaces tend to slow down obtaining quantitative results such as lattice parameters and phase fractions. Furthermore, Rietveld refinement strategies (i.e. the parameter turn-on-off sequences) tend to be instrument specific or even specific to a given dataset, such that selection of strategies can become a bottleneck for efficient data analysis. Managing multi-histogram datasets such as from multi-bank neutron diffractometers or caked 2D synchrotron data presents additional challenges due to the large number of histogram-specific parameters. To overcome these challenges in the Rietveld software Material Analysis Using Diffraction (MAUD), the MAUD Interface Language Kit (MILK) is developed along with an updated text batch interface for MAUD. The open-source software MILK is computer-platform independent and is packaged as a Python library that interfaces with MAUD. Using MILK, model selection (e.g. various texture or peak-broadening models), Rietveld parameter manipulation and distributed parallel batch computing can be performed through a high-level Python interface. A high-level interface enables analysis workflows to be easily programmed, shared and applied to large datasets, and external tools to be integrated with MAUD. Through modification to the MAUD batch interface, plot and data exports have been improved. The resulting hierarchical folders from Rietveld refinements with MILK are compatible with Cinema: Debye-Scherrer, a tool for visualizing and inspecting the results of multi-parameter analyses of large quantities of diffraction data. In this manuscript, the combined Python scripting and visualization capability of MILK is demonstrated with a quantitative texture and phase analysis of data collected at the HIPPO neutron diffractometer.

Keywords: MAUD; MILK; Rietveld refinement; diffraction software.

Grants and funding

This work was funded by the US Department of Energy (DOE) through the Los Alamos National Laboratory. Los Alamos National Laboratory is operated by Triad LLC, for the National Nuclear Security Administration of the US DOE (contract No. 89233218CNA000001). Research benefited from funding through an ISTI Rapid Response, TED and IMS Travel grant for LL. DJS also gratefully acknowledges partial support through a University of New Hampshire dissertation year fellowship.