instrument.callbacks
#
Add Python modules here that receive and handle information from other Bluesky controls.
NeXus Writer |
|
custom callbacks |
NeXus Writer#
Write scan(s) to a NeXus/HDF5 file.
Patch to get sample title from metadata, if available. |
|
The NeXus file writer object. |
- class instrument.callbacks.nexus_data_file_writer.MyNXWriter(*args: Any, **kwargs: Any)[source]#
Bases:
NXWriter
Patch to get sample title from metadata, if available.
- instrument.callbacks.nexus_data_file_writer.nxwriter#
The NeXus file writer object.
custom callbacks#
User choice of the SPEC file name. |
|
Make it easy for user to add comments to the data file. |
|
The SPEC file writer object. |
- instrument.callbacks.spec_data_file_writer.motor_start_preprocessor(plan)[source]#
Record motor positions at start of each run.
- instrument.callbacks.spec_data_file_writer.newSpecFile(title, scan_id=None, RE=None)[source]#
User choice of the SPEC file name.
Cleans up title, prepends month and day and appends file extension. If
RE
is passed, then resetsRE.md["scan_id"] = scan_id
.If the SPEC file already exists, then
scan_id
is ignored andRE.md["scan_id"]
is set to the last scan number in the file.
- instrument.callbacks.spec_data_file_writer.spec_comment(comment, doc=None)[source]#
Make it easy for user to add comments to the data file.
- instrument.callbacks.spec_data_file_writer.specwriter#
The SPEC file writer object.