id3c.callbacks.demo_spec_callback#
User choice of the SPEC file name. |
|
Make it easy for user to add comments to the data file. |
|
Attributes#
Functions#
|
Make it easy for user to add comments to the data file. |
|
User choice of the SPEC file name. |
|
Initialize specwriter with the run engine and return it. |
Module Contents#
- id3c.callbacks.demo_spec_callback.spec_comment(comment: str, doc: Any | None = None) None[source]#
Make it easy for user to add comments to the data file.
- id3c.callbacks.demo_spec_callback.newSpecFile(title: str, scan_id: int | None = None, RE: Any | None = None) None[source]#
User choice of the SPEC file name.
Cleans up title, prepends month and day and appends file extension. If
REis passed, then resetsRE.md["scan_id"] = scan_id.If the SPEC file already exists, then
scan_idis ignored andRE.md["scan_id"]is set to the last scan number in the file.