bluesky_tiled_plugins.writing._json_writer#

Module Contents#

Classes#

JSONWriter

Writer of Bluesky documents of a single run into a JSON file as an array.

JSONLinesWriter

Writer of Bluesky documents into a JSON Lines file

API#

class bluesky_tiled_plugins.writing._json_writer.JSONWriter(dirname: str, filename: str | None = None)#

Writer of Bluesky documents of a single run into a JSON file as an array.

The file is created when a Start document is received, each new document is written immediately, and the JSON array is closed when the “stop” document is received.

class bluesky_tiled_plugins.writing._json_writer.JSONLinesWriter(dirname: str, filename: str | None = None)#

Writer of Bluesky documents into a JSON Lines file

If the file already exists, new documents will be appended to it.