21–27 Sept 2026
EuXFEL Lighthouse
Europe/Berlin timezone

mmg_toolbox - a collaborative repository of python tools for magnetic materials experiments on x-ray beamlines

22 Sept 2026, 18:15
1h 45m
EuXFEL Lighthouse

EuXFEL Lighthouse

Poster Data Analysis Poster Session & Reception

Speaker

Dan Porter (Diamond Light Source)

Description

The Magnetic Materials Group Toolbox is a collaborative project across the Magnetic Materials Group of beamlines at Diamond Light Source. Its purpose is to bring common data-analysis tools together into a single Python module, enabling users to write simple analysis scripts and Jupyter notebooks for routine measurements. Common functionality include reading scan data from NeXus files, automatic normalisation, peak fitting, creating detector integration regions of interest, analysis of XMCD spectra, absorption corrections and much more.

DiamondLightSource/mmg_toolbox

The repository includes scripts and notebooks for automated data analysis workflows, designed to work on current and future Diamond software infrastructure. It provides a well defined python environment that can be containerised for various cloud-based deployments.
The MMG Toolbox also includes a beamline configurable graphical user interface for viewing experimental data. The viewer reads NeXus files and takes advantage of the format’s automatic plotting features to display the appropriate axes and detector images. It also presents beamline specific metadata and can be configured to suit user needs. The viewer supports a range of simple data-analysis tasks, including peak fitting, plotting multiple scans (as multi-line plots, 2D images, or 3D surfaces), and generating Python scripts and Jupyter notebooks to provide flexibility in data manipulation.

Author

Dan Porter (Diamond Light Source)

Presentation materials

There are no materials yet.