Speaker
Description
NeXus application definitions are the standard data format being adopted for all beamlines and experiments at BESSY-II. These definitions map a generic dataset, consisting of a collection of devices and their acquired data, onto a specific experimental technique or combination of techniques. When the devices are represented as instances of NeXus device base classes, this mapping requires only the list of techniques and the names of the participating devices. For experiments using Bluesky for data acquisition, the standardised approach to metadata collection across techniques makes it possible to automate the creation of this device mapping.
This submission presents the Python package bluesky-nexus, which provides Pydantic models of NeXus device base classes together with tools for defining schemas that map Bluesky/Ophyd devices onto those models. By integrating these schemas directly with device classes, bluesky-nexus automatically captures the metadata needed to describe how device signals correspond to components of NeXus base classes whenever devices are added to a Bluesky environment. This removes the need for users and beamline support staff to manually maintain consistency between experimental infrastructure and the data-processing pipelines used to generate NeXus data.