apsbits.demo_instrument.callbacks.nexus_data_file_writer#

Nexus data file writer callback.

This module provides callbacks for writing data to Nexus data files.

Functions

nxwriter_init(RE)

Initialize the Nexus data file writer callback.

Classes

MyNXWriter(*args, **kwargs)

Patch to get sample title from metadata, if available.

class apsbits.demo_instrument.callbacks.nexus_data_file_writer.MyNXWriter(*args: Any, **kwargs: Any)[source]#

Bases: NXWriter

Patch to get sample title from metadata, if available.

get_sample_title()[source]#

Get the title from the metadata or modify the default.

default title: S{scan_id}-{plan_name}-{short_uid}

apsbits.demo_instrument.callbacks.nexus_data_file_writer.nxwriter_init(RE)[source]#

Initialize the Nexus data file writer callback.